Adiciona totais de rendimentos tributáveis.
[cascardo/declara.git] / lib / rendimento.c
index 508a6fb..2e1d369 100644 (file)
@@ -91,7 +91,8 @@ static int run_rendimento(struct declaracao *dec, char **args, int argc)
                rendimento_free(rendimento);
                return r;
        }
-       r = totais_add(dec, "RENDPJ", rendimento->rendimento);
+       r = totais_add(dec, "RENDTRIB", rendimento->rendimento);
+       r += totais_add(dec, "RENDPJ", rendimento->rendimento);
        r += totais_add(dec, "RENDPJTIT", rendimento->rendimento);
        r += totais_add(dec, "INSS", rendimento->previdencia);
        r += totais_add(dec, "DECIMOTERCEIRO", rendimento->decimoterceiro);