From 9419b19aaf4cdf4ae81e92fab5c7b154cad3e17f Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Mon, 9 Apr 2018 23:33:48 -0300 Subject: [PATCH] =?utf8?q?Crit=C3=A9rios=20de=20obrigatoriedade.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Há outros critérios de obrigatoriedade, como valor total de bens e direitos. Um dos campos gerados da declaração a ser entregue identifica os diferentes critérios de obrigatoriedade como bits em seu valor. --- lib/calcula.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/calcula.c b/lib/calcula.c index a00327c..eac8894 100644 --- a/lib/calcula.c +++ b/lib/calcula.c @@ -251,7 +251,17 @@ int calcula(struct declaracao *dec) R(totais_get(dec, "RENDTRIB")), R(obrigatoriedade[ANO(dec->ano)])); } - dec->obrigatoria = 1; + dec->obrigatoria += 1; + } + if (totais_get(dec, "BENS") > 30000000) { + if (dec->verbose) { + printf("Declaracao obrigatoria pois bens e direitos e" + " maior que minimo para declaracao: " + FMT_R" > "FMT_R"\n", + R(totais_get(dec, "BENS")), + R(30000000)); + } + dec->obrigatoria += 32; } i_simples = imposto_simples(dec); i_completa = imposto_completa(dec); -- 2.20.1