From 26a62a7bcd9a7b23a19d3a9f2311780e57e95358 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sun, 14 Apr 2019 21:41:54 -0300 Subject: [PATCH] Suporte a lucro de micro-empresa e SIMPLES. --- lib/gera.c | 6 ++++++ lib/isento.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/lib/gera.c b/lib/gera.c index 2f7ada3..79e0f9d 100644 --- a/lib/gera.c +++ b/lib/gera.c @@ -847,6 +847,11 @@ static void gera_plr2(struct declaracao *dec, FILE *f) gera_isento2(dec, f, 11, 11, 88); } +static void gera_lucrome2(struct declaracao *dec, FILE *f) +{ + gera_isento2(dec, f, 13, 13, 84); +} + static void gera_outrosisentos(struct declaracao *dec, FILE *f) { struct isento *i; @@ -1139,6 +1144,7 @@ static int gera(struct declaracao *dec, char *filename) IW(gera_aplicacoes2, 6); //dec->linhas[99] = 0; IW(gera_plr2, 11); + IW(gera_lucrome2, 13); //dec->linhas[96] = 0; } diff --git a/lib/isento.c b/lib/isento.c index 3967d2c..49209c1 100644 --- a/lib/isento.c +++ b/lib/isento.c @@ -51,6 +51,10 @@ static int isento_totais_update(struct declaracao *dec, struct isento *isento) isento->exclusivo = 0; r = totais_add(dec, "POUPANCA", isento->valor); break; + case 13: + isento->exclusivo = 0; + r = totais_add(dec, "LUCROME", isento->valor); + break; case 6: case 99: isento->exclusivo = 1; -- 2.20.1