From 7d6524b4c53e80a8b006f2715520fb225f99433b Mon Sep 17 00:00:00 2001 From: Antonio Angelino <antonio@easypeasycloud.com> Date: Thu, 26 Sep 2024 10:52:34 +0100 Subject: [PATCH 1/2] Updated tests for ES-GC --- test/sales_tax-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/sales_tax-test.js b/test/sales_tax-test.js index 5c0e7b5..3dc55d8 100644 --- a/test/sales_tax-test.js +++ b/test/sales_tax-test.js @@ -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( @@ -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( From edf558a1d12b6f8266dd57187e448a419dbe5988 Mon Sep 17 00:00:00 2001 From: Antonio Angelino <antonio@easypeasycloud.com> Date: Thu, 26 Sep 2024 10:54:25 +0100 Subject: [PATCH 2/2] Introduced IGIC as sales tax type --- res/sales_tax_rates.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/sales_tax_rates.json b/res/sales_tax_rates.json index 0ec3e40..21d2aae 100644 --- a/res/sales_tax_rates.json +++ b/res/sales_tax_rates.json @@ -333,7 +333,7 @@ "GC": { "rate": -0.07, - "type": "vat" + "type": "igic" }, "ML": { @@ -343,7 +343,7 @@ "TF": { "rate": -0.07, - "type": "vat" + "type": "igic" } } },