X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Fisento.c;h=16804e319114bf76434b1b421063834bb7514721;hb=579ef15a47a303d0cfb26baadd703a5cdfd7c1a5;hp=fd8f9259b06dcc3e56dbd556a61d9110650f7b1a;hpb=b3f6329ce7dabc13bf625cf14e66813a98c4f42a;p=cascardo%2Fdeclara.git diff --git a/lib/isento.c b/lib/isento.c index fd8f925..16804e3 100644 --- a/lib/isento.c +++ b/lib/isento.c @@ -39,16 +39,19 @@ static int isento_totais_update(struct declaracao *dec, struct isento *isento) isento->exclusivo = 0; r = totais_add(dec, "INDENIZACOES", isento->valor); break; + case 11: case 96: isento->exclusivo = 1; r = totais_add(dec, "PLR", isento->valor); break; case 97: break; + case 12: case 98: isento->exclusivo = 0; r = totais_add(dec, "POUPANCA", isento->valor); break; + case 6: case 99: isento->exclusivo = 1; r = totais_add(dec, "APLICACOES", isento->valor); @@ -156,7 +159,7 @@ static int run_isento(struct declaracao *dec, char **args, int argc) isento_free(isento); return r; } - r = list_insert_ordered(&dec->isentos, isento, isento_cmp); + r = list_add(&dec->isentos, isento); if (r < 0) { isento_free(isento); return r;