Para a linha 18, clarifica alguns totais, gera outros utilizando o
dicionário de totais, e computa os rendimentos exclusivos do titular,
considerando o décimo terceiro salário.
fprintf(f, "%013lld", dec->pagar); /* imposto pagar */
fprintf(f, "%d", 0); /* TODO: quotas */
fprintf(f, "%013lld", 0); /* TODO: valor quota */
fprintf(f, "%013lld", dec->pagar); /* imposto pagar */
fprintf(f, "%d", 0); /* TODO: quotas */
fprintf(f, "%013lld", 0); /* TODO: valor quota */
- fprintf(f, "%013lld", 0); /* TODO: rendimentos isentos */
- fprintf(f, "%013lld", 0); /* TODO: rendimentos tributação exclusiva */
+ fprintf(f, "%013lld", totais_get(dec, "ISENTOS")); /* rendimentos isentos */
+ fprintf(f, "%013lld", totais_get(dec, "EXCLUSIVOS")); /* rendimentos tributação exclusiva */
fprintf(f, "%013lld", 0); /* TODO: conjuge */
fprintf(f, "%013lld", 0); /* TODO: rendimento PJ dependente */
fprintf(f, "%013lld", 0); /* TODO: imposto retido dependente */
fprintf(f, "%013lld", 0); /* TODO: imposto ganhos de capital */
fprintf(f, "%013lld", 0); /* TODO: conjuge */
fprintf(f, "%013lld", 0); /* TODO: rendimento PJ dependente */
fprintf(f, "%013lld", 0); /* TODO: imposto retido dependente */
fprintf(f, "%013lld", 0); /* TODO: imposto ganhos de capital */
- fprintf(f, "%013lld", 0); /* TODO: rendimento tributável PJ titular */
+ fprintf(f, "%013lld", totais_get(dec, "RENDPJTIT")); /* rendimento tributável PJ titular */
fprintf(f, "%013lld", 0); /* TODO: total rural */
fprintf(f, "%013lld", dec->retido); /* imposto retido titular */
fprintf(f, "%013lld", 0); /* TODO: total rural */
fprintf(f, "%013lld", dec->retido); /* imposto retido titular */
- fprintf(f, "%013lld", 0); /* TODO: total bens ano anterior */
- fprintf(f, "%013lld", 0); /* TODO: total bens ano base */
- fprintf(f, "%013lld", 0); /* TODO: rendimentos isentos titular */
+ fprintf(f, "%013lld", totais_get(dec, "BENSANTERIOR")); /* total bens ano anterior */
+ fprintf(f, "%013lld", totais_get(dec, "BENS")); /* total bens ano base */
+ fprintf(f, "%013lld", totais_get(dec, "ISENTOSTIT")); /* rendimentos isentos titular */
fprintf(f, "%013lld", 0); /* TODO: rendimentos isentos dependentes */
fprintf(f, "%013lld", 0); /* TODO: rendimentos isentos dependentes */
- fprintf(f, "%013lld", 0); /* TODO: tributação exclusiva titular */
+ fprintf(f, "%013lld", totais_get(dec, "EXCLUSIVOSTIT")); /* TODO: tributação exclusiva titular */
fprintf(f, "%013lld", 0); /* TODO: tributação exclusiva dependentes */
fprintf(f, "%013lld", 0); /* TODO: total não tributável */
fprintf(f, "%013lld", 0); /* TODO: total dívidas ano anterior */
fprintf(f, "%013lld", 0); /* TODO: total dívidas ano base */
fprintf(f, "%013lld", 0); /* TODO: retido fonte Lei 11.033 */
fprintf(f, "%013lld", 0); /* TODO: tributação exclusiva dependentes */
fprintf(f, "%013lld", 0); /* TODO: total não tributável */
fprintf(f, "%013lld", 0); /* TODO: total dívidas ano anterior */
fprintf(f, "%013lld", 0); /* TODO: total dívidas ano base */
fprintf(f, "%013lld", 0); /* TODO: retido fonte Lei 11.033 */
- fprintf(f, "%013lld", 0); /* TODO: isentos e não tributáveis */
- fprintf(f, "%013lld", 0); /* TODO: tributação exclusiva */
+ fprintf(f, "%013lld", 0); /* TODO: isentos e não tributáveis, transportado */
+ fprintf(f, "%013lld", 0); /* TODO: tributação exclusiva, transportado */
fprintf(f, "%013lld", 0); /* TODO: ganhos líquidos renda variável */
fprintf(f, "%013lld", 0); /* TODO: parcela isenta ganhos capital */
fprintf(f, "%013lld", 0); /* TODO: rendimentos PF exterior titular */
fprintf(f, "%013lld", 0); /* TODO: ganhos líquidos renda variável */
fprintf(f, "%013lld", 0); /* TODO: parcela isenta ganhos capital */
fprintf(f, "%013lld", 0); /* TODO: rendimentos PF exterior titular */
r += totais_add(dec, "INSS", rendimento->previdencia);
r += totais_add(dec, "DECIMOTERCEIRO", rendimento->decimoterceiro);
r += totais_add(dec, "EXCLUSIVOS", rendimento->decimoterceiro);
r += totais_add(dec, "INSS", rendimento->previdencia);
r += totais_add(dec, "DECIMOTERCEIRO", rendimento->decimoterceiro);
r += totais_add(dec, "EXCLUSIVOS", rendimento->decimoterceiro);
+ r += totais_add(dec, "EXCLUSIVOSTIT", rendimento->decimoterceiro);
if (r) {
rendimento_free(rendimento);
return r;
if (r) {
rendimento_free(rendimento);
return r;