[ANO(2015)] = 215652,
[ANO(2016)] = 227508,
[ANO(2017)] = 227508,
+ [ANO(2018)] = 227508,
};
static const long long instrucao[ANO(MAX_ANOS)] = {
[ANO(2015)] = 337583,
[ANO(2016)] = 356150,
[ANO(2017)] = 356150,
+ [ANO(2018)] = 356150,
};
long long deducao_dependente(struct declaracao *dec)
printf("\tDependentes: "FMT_R"\n", R(totais_get(dec, "DEPENDENTES")));
printf("\tINSS: "FMT_R"\n", R(totais_get(dec, "INSS")));
printf("\tInstrução: "FMT_R"\n", R(totais_get(dec, "INSTRUCAO")));
+ printf("\tMédicas: "FMT_R"\n", R(totais_get(dec, "MEDICAS")));
+ printf("\tPrevidência: "FMT_R"\n", R(totais_get(dec, "PREVIDENCIA")));
printf("\tPagamentos: "FMT_R"\n", R(totais_get(dec, "PAGAMENTOS")));
printf("\tReembolsos: -"FMT_R"\n", R(totais_get(dec, "REEMBOLSOS")));
}
{
struct rendimento *rendimento;
int i;
- dec->pago = dec->retido = 0;
+ dec->pago = dec->retido = totais_get(dec, "PAGO");
+ dec->retido -= totais_get(dec, "CARNE");
for (i = 0; rendimento = list_get(dec->rendimento, i); i++) {
dec->pago += rendimento->imposto;
dec->retido += rendimento->imposto;
[ANO(2015)] = table2015,
[ANO(2016)] = table2016,
[ANO(2017)] = table2017,
+ [ANO(2018)] = table2017,
};
static const long long simples[ANO(MAX_ANOS)] = {
[ANO(2015)] = 1588089,
[ANO(2016)] = 1675434,
[ANO(2017)] = 1675434,
+ [ANO(2018)] = 1675434,
};
static const long long obrigatoriedade[ANO(MAX_ANOS)] = {
[ANO(2015)] = 2681655,
[ANO(2016)] = 2812391,
[ANO(2017)] = 2855970, /* De acordo com IN 1671/2016 */
+ [ANO(2018)] = 2855970,
};
static long long imposto(struct taxtable *tt, long long tr, int verbose)
R(totais_get(dec, "RENDTRIB")),
R(obrigatoriedade[ANO(dec->ano)]));
}
- dec->obrigatoria = 1;
+ dec->obrigatoria += 1;
+ }
+ if (totais_get(dec, "BENS") > 30000000) {
+ if (dec->verbose) {
+ printf("Declaracao obrigatoria pois bens e direitos e"
+ " maior que minimo para declaracao: "
+ FMT_R" > "FMT_R"\n",
+ R(totais_get(dec, "BENS")),
+ R(30000000));
+ }
+ dec->obrigatoria += 32;
}
i_simples = imposto_simples(dec);
i_completa = imposto_completa(dec);
dec->restituicao = dec->pago - dec->devido;
else
dec->pagar = dec->devido - dec->pago;
+ dec->aliquota_efetiva = dec->devido * 10000 / totais_get(dec, "RENDTRIB");
return 0;
}