From b9900a49ee9f42270470a596d41896c7b57cba07 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 23 Oct 2019 10:57:35 +0100 Subject: [PATCH] Split out UK channel islands - Exclude Jersey & Guernsey From UK for tax purposes. Jersey and Gurney are part of the UK but are no part of the European Union for VAT purposes - Update United Kingdom to show it excludes channel islands & add exclude regex for IM/JE postcodes - Add IM postcodes regex --- resources/tax_type/gb_ci_vat.json | 21 +++++++++++++++++++ resources/zone/gb_ci_vat.json | 34 +++++++++++++++++++++++++++++++ resources/zone/gb_vat.json | 8 +++++--- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 resources/tax_type/gb_ci_vat.json create mode 100644 resources/zone/gb_ci_vat.json diff --git a/resources/tax_type/gb_ci_vat.json b/resources/tax_type/gb_ci_vat.json new file mode 100644 index 0000000..6ca4cfc --- /dev/null +++ b/resources/tax_type/gb_ci_vat.json @@ -0,0 +1,21 @@ +{ + "name": "British Channel Islands VAT", + "generic_label": "vat", + "display_inclusive": true, + "zone": "gb_ci_vat", + "tag": "EU", + "rates": [ + { + "id": "gb_ci_vat_zero", + "name": "Zero", + "default": true, + "amounts": [ + { + "id": "gb_ci_vat_zero", + "amount": 0, + "start_date": "1973-01-01" + } + ] + } + ] +} diff --git a/resources/zone/gb_ci_vat.json b/resources/zone/gb_ci_vat.json new file mode 100644 index 0000000..caeb414 --- /dev/null +++ b/resources/zone/gb_ci_vat.json @@ -0,0 +1,34 @@ +{ + "name": "United Kingdom - Channel Islands (VAT)", + "scope": "tax", + "members": [ + { + "type": "country", + "id": "gb_ci_vat_0", + "name": "Jersey", + "country_code": "JE", + "included_postal_codes": "\/(^$)|(^JE[0-9]{1})\/" + }, + { + "type": "country", + "id": "gb_ci_vat_1", + "name": "Jersey", + "country_code": "GB", + "included_postal_codes": "\/(^JE[0-9]{1})\/" + }, + { + "type": "country", + "id": "gb_ci_vat_2", + "name": "Guernsey", + "country_code": "GG", + "included_postal_codes": "\/(^$)|(^GY[0-9]{1,2})\/" + }, + { + "type": "country", + "id": "gb_ci_vat_3", + "name": "Guernsey", + "country_code": "GB", + "included_postal_codes": "\/(^GY[0-9]{1,2})\/" + } + ] +} diff --git a/resources/zone/gb_vat.json b/resources/zone/gb_vat.json index 35a8019..4debdfd 100644 --- a/resources/zone/gb_vat.json +++ b/resources/zone/gb_vat.json @@ -5,14 +5,16 @@ { "type": "country", "id": "gb_vat_0", - "name": "United Kingdom", - "country_code": "GB" + "name": "United Kingdom (ex. Channel Islands & Isle Of Man)", + "country_code": "GB", + "excluded_postal_codes": "\/(^IM[0-9]{1})|(^JE[0-9]{1})|(^GY[0-9]{1,2})\/" }, { "type": "country", "id": "gb_vat_1", "name": "Isle of Man", - "country_code": "IM" + "country_code": "IM", + "included_postal_codes": "\/^IM[0-9]{1}\/" } ] }