static void gera_exclusivos2(struct declaracao *dec, FILE *f, int codigo, char *nome)
{
+ long long total = totais_get(dec, nome);
+ if (total == 0)
+ return;
fprintf(f, "24");
fprintf(f, "%-11.11s", dec->cpf);
fprintf(f, "%04d", codigo);
- fprintf(f, "%013lld", totais_get(dec, nome)); /* TODO: retistuição imposto anos anteriores */
+ fprintf(f, "%013lld", total); /* TODO: retistuição imposto anos anteriores */
}
static void gera_24_decimoterceiro(struct declaracao *dec, FILE *f)