struct taxtable *tt;
long long tr, td;
tt = table[ANO(dec->ano)];
- tr = totais_get(dec, "RENDPJ");
+ tr = totais_get(dec, "RENDTRIB");
if (tr / 5 < simples[ANO(dec->ano)])
td = tr / 5;
else
struct taxtable *tt;
long long tr, td;
tt = table[ANO(dec->ano)];
- tr = totais_get(dec, "RENDPJ");
+ tr = totais_get(dec, "RENDTRIB");
td = total_deducao(dec);
totais_add(dec, "DEDUCOES", td);
tr -= td;
dec_set_error(dec, "Ano %d não suportado.", dec->ano);
return -EINVAL;
}
- if (totais_get(dec, "RENDPJ") > obrigatoriedade[ANO(dec->ano)]) {
+ if (totais_get(dec, "RENDTRIB") > obrigatoriedade[ANO(dec->ano)]) {
if (dec->verbose) {
printf("Declaracao obrigatoria pois rendimento e"
"maior que mínimo para declaracao: "
FMT_R" > "FMT_R"\n",
- R(totais_get(dec, "RENDPJ")),
+ R(totais_get(dec, "RENDTRIB")),
R(obrigatoriedade[ANO(dec->ano)]));
}
dec->obrigatoria = 1;