From: Thadeu Lima de Souza Cascardo Date: Mon, 29 Apr 2019 20:10:20 +0000 (-0300) Subject: Suporte a outros rendimentos isentos para 2019 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fdeclara.git;a=commitdiff_plain;h=5132c37575b816ce6750bf5561f2c63be4478473 Suporte a outros rendimentos isentos para 2019 Com o novo formato de linhas de rendimentos isentos e tributados exclusivamente na fonte desde 2018, diferentes tipos de fontes precisam de novo suporte. Este commit atualiza o suporte a outros rendimentos isentos, testado para 2019. --- diff --git a/lib/gera.c b/lib/gera.c index 74329f3..07692db 100644 --- a/lib/gera.c +++ b/lib/gera.c @@ -579,6 +579,11 @@ static void gera_23_lucrome(struct declaracao *dec, FILE *f) gera_isentos2(dec, f, 13, "LUCROME"); } +static void gera_23_outrosisentos(struct declaracao *dec, FILE *f) +{ + gera_isentos2(dec, f, 26, "OUTROSISENTOS"); +} + static void gera_exclusivos(struct declaracao *dec, FILE *f) { fprintf(f, "24"); @@ -867,6 +872,14 @@ static void gera_outrosisentos(struct declaracao *dec, FILE *f) fprintf(f, "%-60.60s", i->descricao); } +static void gera_outrosisentos2(struct declaracao *dec, FILE *f) +{ + struct isento *i; + i = dec->ctx; + gera_isento2(dec, f, 26, 26, 86); + fprintf(f, "%-60.60s", i->descricao); +} + static void gera_poupanca(struct declaracao *dec, FILE *f) { gera_isento(dec, f, 98); @@ -1113,6 +1126,7 @@ static int gera(struct declaracao *dec, char *filename) } else { W(gera_23_poupanca); W(gera_23_lucrome); + W(gera_23_outrosisentos); W(gera_24_decimoterceiro); W(gera_24_aplicacoes); W(gera_24_plr); @@ -1152,6 +1166,7 @@ static int gera(struct declaracao *dec, char *filename) IW(gera_poupanca2, 12); //dec->linhas[12] = 0; IW(gera_lucrome2, 13); + IW(gera_outrosisentos2, 26); IW(gera_aplicacoes2, 6); //dec->linhas[99] = 0; IW(gera_plr2, 11); diff --git a/lib/isento.c b/lib/isento.c index 49209c1..3393100 100644 --- a/lib/isento.c +++ b/lib/isento.c @@ -45,6 +45,9 @@ static int isento_totais_update(struct declaracao *dec, struct isento *isento) r = totais_add(dec, "PLR", isento->valor); break; case 97: + case 26: + isento->exclusivo = 0; + r = totais_add(dec, "OUTROSISENTOS", isento->valor); break; case 12: case 98: