Deduz reembolsos de pagamentos.
[cascardo/declara.git] / lib / calcula.c
index 68ad6f1..50747c9 100644 (file)
@@ -41,7 +41,8 @@ static long long total_deducao(struct declaracao *dec)
        int i;
        return totais_get(dec, "DEPENDENTES") +
               totais_get(dec, "INSS") +
-              totais_get(dec, "PAGAMENTOS");
+              totais_get(dec, "PAGAMENTOS") -
+              totais_get(dec, "REEMBOLSOS");
 }
 
 static void total_pago(struct declaracao *dec)