From 06c4524478bdd6fc0bb9092afc53fe0c6c6d0dab Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 19 Apr 2019 21:47:46 -0300 Subject: [PATCH] Obrigatoriedade para rendimentos isentos e exclusivos. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Rendimentos isentos ou tributados exclusivamente na fonte cuja soma é superior a R$ 40.000,00 obrigam o contribuinte a apresentar a Declaração de Ajuste Anual. --- lib/calcula.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/calcula.c b/lib/calcula.c index 1a132a2..a691472 100644 --- a/lib/calcula.c +++ b/lib/calcula.c @@ -244,6 +244,7 @@ static long long imposto_completa(struct declaracao *dec) int calcula(struct declaracao *dec) { long long i_simples, i_completa; + long long isentos; if (!ANO_VALIDO(dec->ano)) { dec_set_error(dec, "Ano %d não suportado.", dec->ano); return -EINVAL; @@ -258,6 +259,16 @@ int calcula(struct declaracao *dec) } dec->obrigatoria += 1; } + isentos = totais_get(dec, "ISENTOS") + totais_get(dec, "EXCLUSIVOS"); + if (isentos > 4000000) { + if (dec->verbose) { + printf("Declaracao obrigatoria pois rendimentos " + "isentos e exclusivos maior que minimo para " + "declaracao: " FMT_R" > "FMT_R"\n", + R(isentos), R(4000000)); + } + dec->obrigatoria += 2; + } if (totais_get(dec, "BENS") > 30000000) { if (dec->verbose) { printf("Declaracao obrigatoria pois bens e direitos e" -- 2.20.1