X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fbase.c;h=4f5c5fdb25263b8d942669387bc153dd537b8ea6;hb=0d45a577c99972c2cd62c839cabc29bb25caa8ca;hp=f15c4ea4ce46931a51fa11c7c570792bb2a58ca0;hpb=8e268068608fc385fcd2a8d433bc84fc219df209;p=cascardo%2Fdeclara.git 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; }