From 7c55536785ada77e0dd0b94af5f384ebd8444822 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 26 Mar 2016 00:17:22 -0300 Subject: [PATCH] =?utf8?q?N=C3=A3o=20gera=20linha=20de=20isentos=20e=20exc?= =?utf8?q?lusivos=20quando=20n=C3=A3o=20existentes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Quando os rendimentos isentos ou tributados de forma exclusiva na fonte não existem, não imprime suas respectivas linhas. --- lib/gera.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gera.c b/lib/gera.c index e35fb23..5806e53 100644 --- a/lib/gera.c +++ b/lib/gera.c @@ -777,8 +777,10 @@ static int gera(struct declaracao *dec, char *filename) W(gera_rendimento); } - W(gera_isentos); - W(gera_exclusivos); + if (totais_get(dec, "ISENTOS")) + W(gera_isentos); + if (totais_get(dec, "EXCLUSIVOS")) + W(gera_exclusivos); for (i = 0; (dependente = list_get(dec->dependentes, i)); i++) { W(gera_dependente); -- 2.20.1