Mudanças no cálculo das deduções.
[cascardo/declara.git] / lib / calcula.c
index c928a02..d222f96 100644 (file)
@@ -53,8 +53,8 @@ static long long total_deducao(struct declaracao *dec)
        }
        return totais_get(dec, "DEPENDENTES") +
               totais_get(dec, "INSS") +
-              totais_get(dec, "PAGAMENTOS") -
-              totais_get(dec, "REEMBOLSOS");
+              totais_get(dec, "MEDICAS") +
+              totais_get(dec, "PREVIDENCIA");
 }
 
 static void total_pago(struct declaracao *dec)