Skip to content

Commit

Permalink
Merge pull request #73 from AntonioAngelino/patch-2
Browse files Browse the repository at this point in the history
Intoduces tax type IGIC and fixes the broken unit test
  • Loading branch information
valeriansaliou authored Sep 26, 2024
2 parents ca5a27c + edf558a commit 9b7dfe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions res/sales_tax_rates.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@

"GC": {
"rate": -0.07,
"type": "vat"
"type": "igic"
},

"ML": {
Expand All @@ -343,7 +343,7 @@

"TF": {
"rate": -0.07,
"type": "vat"
"type": "igic"
}
}
},
Expand Down
6 changes: 3 additions & 3 deletions test/sales_tax-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1699,11 +1699,11 @@ describe("node-sales-tax", function() {
return SalesTax.getAmountWithSalesTax("ES", "GC", 1000.00)
.then(function(tax) {
assert.equal(
tax.type, "vat", "Tax type should be VAT"
tax.type, "igic", "Tax type should be IGIC"
);

assert.equal(
tax.rate, 0.00, "Tax rate should be 0%"
tax.rate, 0.07, "Tax rate should be 7%"
);

assert.equal(
Expand Down Expand Up @@ -1731,7 +1731,7 @@ describe("node-sales-tax", function() {
);

assert.equal(
tax.total, 1000.00, "Total amount should be 1000.00"
tax.total, 1070.00, "Total amount should be 1070.00"
);

assert.equal(
Expand Down

0 comments on commit 9b7dfe1

Please sign in to comment.