#include "rendimento.h"
#include "totais.h"
+/* Alguns totais precisam ser limitados. Portanto, um total de decuções
+ * precisa ser ajustado para tais limites. Esta função considerará tais
+ * limites no futuro. */
static long long total_deducao(struct declaracao *dec)
{
- long long td = 0;
- struct rendimento *rendimento;
- int i;
- for (i = 0; rendimento = list_get(dec->rendimento, i); i++) {
- td += rendimento->previdencia;
- }
- return td;
+ return totais_get(dec, "INSS");
}
static void total_pago(struct declaracao *dec)