From 0d45a577c99972c2cd62c839cabc29bb25caa8ca Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 25 Sep 2015 06:58:37 -0300 Subject: [PATCH] =?utf8?q?Inclui=20mais=20informa=C3=A7=C3=B5es=20no=20sum?= =?utf8?q?=C3=A1rio.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Inclui base de cálculo, rendimentos isentos, rendimentos exclusivos e hash/recibo no sumário. --- lib/base.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/base.c b/lib/base.c index f15c4ea..4f5c5fd 100644 --- a/lib/base.c +++ b/lib/base.c @@ -24,6 +24,7 @@ #include "rendimento.h" #include "pagamento.h" #include "bem.h" +#include "totais.h" #include "util.h" SET_INT(ano); @@ -62,6 +63,16 @@ static int run_resumo(struct declaracao *dec, char **args, int argc) if (dec->pagar > 0) printf("a pagar: %lld.%02d\n", reais(dec->pagar), centavos(dec->pagar)); + printf("base de cálculo: %lld.%02d\n", + reais(totais_get(dec, "BASE")), + centavos(totais_get(dec, "BASE"))); + printf("isentos: %lld.%02d\n", + reais(totais_get(dec, "ISENTOS")), + centavos(totais_get(dec, "ISENTOS"))); + printf("exclusivos: %lld.%02d\n", + reais(totais_get(dec, "EXCLUSIVOS")), + centavos(totais_get(dec, "EXCLUSIVOS"))); + printf("hash: %010ld\n", dec->hash); return 0; } -- 2.20.1