Mostra outras deduções no modo verboso
[cascardo/declara.git] / lib / calcula.c
index ac2ed73..8aa0cc1 100644 (file)
@@ -73,6 +73,7 @@ static void calculo_instrucao(struct declaracao *dec)
                        }
                }
                if (instrucao_dependente) {
+                       /* Conta número de dependentes com instrução. */
                        totais_add(dec, "DEPSINSTRUCAO", 1);
                        if (dec->verbose) {
                                printf("Dependente %s (%d) tem instrução\n", d->nome, i);
@@ -100,6 +101,8 @@ static long long total_deducao(struct declaracao *dec)
                printf("\tDependentes: "FMT_R"\n", R(totais_get(dec, "DEPENDENTES")));
                printf("\tINSS: "FMT_R"\n", R(totais_get(dec, "INSS")));
                printf("\tInstrução: "FMT_R"\n", R(totais_get(dec, "INSTRUCAO")));
+               printf("\tMédicas: "FMT_R"\n", R(totais_get(dec, "MEDICAS")));
+               printf("\tPrevidência: "FMT_R"\n", R(totais_get(dec, "PREVIDENCIA")));
                printf("\tPagamentos: "FMT_R"\n", R(totais_get(dec, "PAGAMENTOS")));
                printf("\tReembolsos: -"FMT_R"\n", R(totais_get(dec, "REEMBOLSOS")));
        }