fprintf(f, "%s", dec->cpf); /* CPF: 11 dígitos */
fprintf(f, "%013lld", 0); /* TODO: carnê leão */
fprintf(f, "%013lld", 0); /* TODO: lucros e dividendos */
- fprintf(f, "%013lld", 0); /* TODO: isentos */
- fprintf(f, "%013lld", 0); /* TODO: rendimentos tributação exclusiva */
- fprintf(f, "%013lld", 0); /* TODO: 13o. */
+ /* rendimentos isentos */
+ fprintf(f, "%013lld", totais_get(dec, "ISENTOS"));
+ /* rendimentos tributação exclusiva, exceto décimo terceiro */
+ fprintf(f, "%013lld", totais_get(dec, "EXCLUSIVOS_SEM_13o"));
+ /* 13o. */
+ fprintf(f, "%013lld", totais_get(dec, "DECIMOTERCEIRO"));
fprintf(f, "%013lld", 0); /* TODO: retido na fonte (Lei 11.033) */
fprintf(f, "%013lld", 0); /* TODO: 13o. dependentes */
fprintf(f, "%013lld", 0); /* TODO: lucros dependentes */