#include "cmd.h"
#include "list.h"
#include "util.h"
+#include "totais.h"
void rendimento_free(void *pointer)
{
rendimento_free(rendimento);
return r;
}
+ 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);
+ r += totais_add(dec, "EXCLUSIVOS", rendimento->decimoterceiro);
+ r += totais_add(dec, "EXCLUSIVOSTIT", rendimento->decimoterceiro);
+ if (r) {
+ rendimento_free(rendimento);
+ return r;
+ }
return 0;
}