Skip to content

Commit

Permalink
Merge pull request #9 from nachoesmite/patch-1
Browse files Browse the repository at this point in the history
Update BPC para el 2021
  • Loading branch information
ismaelpadilla authored Feb 9, 2021
2 parents bc1817c + 0204561 commit b4e602f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/data/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Valor BPC 2020.
* Valor BPC 2021.
*/
const BPC = 4519;
const BPC = 4870;

/**
* Franjas de IPRF.
Expand Down
18 changes: 9 additions & 9 deletions src/services/calculos.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("Probar cálculo de aportes BPS", () => {
describe("Probar cálculo de IRPF", () => {
test.each([
[20000, 1, 0, 0, 3000, 900, 20, 0, 0, 0, 0, { impuestoFranja: [0, 0, 0, 0, 0, 0, 0, 0], deducciones: 3920 }, 0],
[40000, 1, 0, 0, 6000, 1800, 40, 0, 0, 0, 0, { impuestoFranja: [0, 837, 0, 0, 0, 0, 0, 0], deducciones: 7840 }, 53],
[40000, 1, 0, 0, 6000, 1800, 40, 0, 0, 0, 0, { impuestoFranja: [0, 591, 0, 0, 0, 0, 0, 0], deducciones: 7840 }, 0],
[
80000,
1,
Expand All @@ -52,8 +52,8 @@ describe("Probar cálculo de IRPF", () => {
0,
0,
0,
{ impuestoFranja: [0, 1356, 3389, 4084, 0, 0, 0, 0], deducciones: 15680 },
7574,
{ impuestoFranja: [0, 1461, 3652.5, 2820, 0, 0, 0, 0], deducciones: 15680 },
6679.1,
],
[
80000,
Expand All @@ -67,8 +67,8 @@ describe("Probar cálculo de IRPF", () => {
0,
0,
0,
{ impuestoFranja: [0, 1356, 3389, 4084, 0, 0, 0, 0], deducciones: 20576 },
7183,
{ impuestoFranja: [0, 1461, 3652.5, 2820, 0, 0, 0, 0], deducciones: 20955.83 },
6257.03,
],
[
80000,
Expand All @@ -82,8 +82,8 @@ describe("Probar cálculo de IRPF", () => {
0,
0,
0,
{ impuestoFranja: [0, 1356, 3389, 4084, 0, 0, 0, 0], deducciones: 25471 },
6791,
{ impuestoFranja: [0, 1461, 3652.5, 2820, 0, 0, 0, 0], deducciones: 26231.6 },
5834.96,
],
[
80000,
Expand All @@ -97,8 +97,8 @@ describe("Probar cálculo de IRPF", () => {
0,
0,
0,
{ impuestoFranja: [0, 1356, 3389, 4084, 0, 0, 0, 0], deducciones: 30367 },
6399,
{ impuestoFranja: [0, 1461, 3652.5, 2820, 0, 0, 0, 0], deducciones: 31507.5 },
5412.9,
],
])(
"Calcula IRPF correctamente",
Expand Down

0 comments on commit b4e602f

Please sign in to comment.