Considera o total de pagamentos nas deduções.
[cascardo/declara.git] / calcula.c
index a78d1c8..4603ab5 100644 (file)
--- a/calcula.c
+++ b/calcula.c
@@ -29,7 +29,7 @@
  * limites no futuro. */
 static long long total_deducao(struct declaracao *dec)
 {
-       return totais_get(dec, "INSS");
+       return totais_get(dec, "INSS") + totais_get(dec, "PAGAMENTOS");
 }
 
 static void total_pago(struct declaracao *dec)