Suporte inicial a 2018.
[cascardo/declara.git] / lib / calcula.c
index ade9be2..a00327c 100644 (file)
@@ -32,12 +32,14 @@ static const long long dependente[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 215652,
        [ANO(2016)] = 227508,
        [ANO(2017)] = 227508,
+       [ANO(2018)] = 227508,
 };
 
 static const long long instrucao[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 337583,
        [ANO(2016)] = 356150,
        [ANO(2017)] = 356150,
+       [ANO(2018)] = 356150,
 };
 
 long long deducao_dependente(struct declaracao *dec)
@@ -166,18 +168,21 @@ static struct taxtable *table[ANO(MAX_ANOS)] = {
        [ANO(2015)] = table2015,
        [ANO(2016)] = table2016,
        [ANO(2017)] = table2017,
+       [ANO(2018)] = table2017,
 };
 
 static const long long simples[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 1588089,
        [ANO(2016)] = 1675434,
        [ANO(2017)] = 1675434,
+       [ANO(2018)] = 1675434,
 };
 
 static const long long obrigatoriedade[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 2681655,
        [ANO(2016)] = 2812391,
        [ANO(2017)] = 2855970, /* De acordo com IN 1671/2016 */
+       [ANO(2018)] = 2855970,
 };
 
 static long long imposto(struct taxtable *tt, long long tr, int verbose)