int calcula(struct declaracao *dec)
{
long long i_simples, i_completa;
+ long long isentos;
if (!ANO_VALIDO(dec->ano)) {
dec_set_error(dec, "Ano %d não suportado.", dec->ano);
return -EINVAL;
}
dec->obrigatoria += 1;
}
+ isentos = totais_get(dec, "ISENTOS") + totais_get(dec, "EXCLUSIVOS");
+ if (isentos > 4000000) {
+ if (dec->verbose) {
+ printf("Declaracao obrigatoria pois rendimentos "
+ "isentos e exclusivos maior que minimo para "
+ "declaracao: " FMT_R" > "FMT_R"\n",
+ R(isentos), R(4000000));
+ }
+ dec->obrigatoria += 2;
+ }
if (totais_get(dec, "BENS") > 30000000) {
if (dec->verbose) {
printf("Declaracao obrigatoria pois bens e direitos e"