* limites no futuro. */
static long long total_deducao(struct declaracao *dec)
{
- return totais_get(dec, "INSS");
+ return totais_get(dec, "INSS") + totais_get(dec, "PAGAMENTOS");
}
static void total_pago(struct declaracao *dec)
td = tr / 5;
else
td = simples2015;
+ totais_add(dec, "DESCONTO", td);
tr -= td;
+ totais_add(dec, "BASE", tr);
return imposto(tt, tr);
}
static int run_calcula(struct declaracao *dec, char **args, int argc)
{
+ totais_add(dec, "EXCLUSIVOS_SEM_13o",
+ totais_get(dec, "EXCLUSIVOS") -
+ totais_get(dec, "DECIMOTERCEIRO"));
return calcula(dec);
}