Skip to content

Commit 9b7dfe1

Browse files
Merge pull request #73 from AntonioAngelino/patch-2
Intoduces tax type IGIC and fixes the broken unit test
2 parents ca5a27c + edf558a commit 9b7dfe1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

res/sales_tax_rates.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333

334334
"GC": {
335335
"rate": -0.07,
336-
"type": "vat"
336+
"type": "igic"
337337
},
338338

339339
"ML": {
@@ -343,7 +343,7 @@
343343

344344
"TF": {
345345
"rate": -0.07,
346-
"type": "vat"
346+
"type": "igic"
347347
}
348348
}
349349
},

test/sales_tax-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1699,11 +1699,11 @@ describe("node-sales-tax", function() {
16991699
return SalesTax.getAmountWithSalesTax("ES", "GC", 1000.00)
17001700
.then(function(tax) {
17011701
assert.equal(
1702-
tax.type, "vat", "Tax type should be VAT"
1702+
tax.type, "igic", "Tax type should be IGIC"
17031703
);
17041704

17051705
assert.equal(
1706-
tax.rate, 0.00, "Tax rate should be 0%"
1706+
tax.rate, 0.07, "Tax rate should be 7%"
17071707
);
17081708

17091709
assert.equal(
@@ -1731,7 +1731,7 @@ describe("node-sales-tax", function() {
17311731
);
17321732

17331733
assert.equal(
1734-
tax.total, 1000.00, "Total amount should be 1000.00"
1734+
tax.total, 1070.00, "Total amount should be 1070.00"
17351735
);
17361736

17371737
assert.equal(

0 commit comments

Comments
 (0)