projects
/
cascardo
/
declara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Insere bens e rendimentos na ordem em que aparecem.
[cascardo/declara.git]
/
lib
/
isento.c
diff --git
a/lib/isento.c
b/lib/isento.c
index
49209c1
..
ab023d7
100644
(file)
--- a/
lib/isento.c
+++ b/
lib/isento.c
@@
-45,6
+45,9
@@
static int isento_totais_update(struct declaracao *dec, struct isento *isento)
r = totais_add(dec, "PLR", isento->valor);
break;
case 97:
r = totais_add(dec, "PLR", isento->valor);
break;
case 97:
+ case 26:
+ isento->exclusivo = 0;
+ r = totais_add(dec, "OUTROSISENTOS", isento->valor);
break;
case 12:
case 98:
break;
case 12:
case 98:
@@
-164,7
+167,7
@@
static int run_isento(struct declaracao *dec, char **args, int argc)
isento_free(isento);
return r;
}
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;
if (r < 0) {
isento_free(isento);
return r;