Download the PHP package gwharton/module-autocustomergroup-uk without Composer
On this page you can find all versions of the php package gwharton/module-autocustomergroup-uk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package module-autocustomergroup-uk
AutoCustomerGroup - United Kingdom & Isle of Man Addon
Magento 2 Module - Module to add United Kingdom & Isle of Man functionality to gwharton/module-autocustomergroup
United Kingdom & Isle of Man VAT Scheme
This Scheme applies to shipments being sent from anywhere in the world to the United Kingdom (UK) and Isle of Man (IM). Note special procedures apply for shipments to Northern Ireland (NI, Part of UK).
As of 1st January 2021, all sellers must collect UK VAT at the point of sale and remit to the UK HMRC.
The module is capable of automatically assigning customers to the following categories.
- Domestic - For shipments wthin the UK/IM, normal UK VAT rules apply.
- Intra-EU B2B - For shipments from the EU to NI and the buyer presents a validated UK VAT number, then the sale can be zero rated for UK VAT. Zero Rate notice to be included on Invoice.
- Intra-EU B2C - For shipments from the EU to NI and the buyer does not present a validated UK VAT number UK VAT should be charged.
- Import B2B - For shipments from outside of the UK/IM to the UK/IM and the buyer presents a validated UK VAT number, then VAT should not be charged. Reverse Charge notice to be included on Invoice.
- Import Taxed - For shipments from outside of the UK/IM to the UK/IM and the total goods value is equal to or below 135 GBP, then VAT should be charged.
- Import Untaxed - For shipments from outside of the UK/IM to the UK/IM, if the total goods value is above 135 GBP, then VAT should NOT be charged and instead will be collected at the UK/IM border along with any duties due.
You need to create the appropriate tax rules and customer groups, and assign these customer groups to the above categories within the module configuration. Please ensure you fully understand the tax rules of the country you are shipping to. The above should only be taken as a guide.
Government Information
Scheme information can be found on the gov.uk website here.
Order Value
For the UK VAT Scheme, the following applies (This can be confirmed here) :
- Total Goods value is the sum of the sale price of all items sold (including any discounts)
- When determining whether VAT should be charged (VAT Threshold) Shipping or Insurance Costs are not included in the value of the goods.
- When determining the amount of VAT to charge the Goods value does include Shipping and Insurance Costs.
More information on the scheme can be found on the UK Government Website
VAT Number Verification
- Offline Validation - A simple format validation is performed.
- Online Validation - In addition to the offline checks above, an online validation check is performed with the UK HMRC VAT Checking Service.
Pseudocode for group allocation
Groups are allocated by evaluating the following rules in this order (If a rule matches, no further rules are evaluated).
- IF MerchantCountry IN UK/IM AND CustomerCountry IN UK/IM THEN Group IS Domestic.
- IF MerchantCountry IN EU AND CustomerCountry IN NI AND TaxIdentifier IS VALID THEN Group IS IntraEUB2B.
- IF MerchantCountry IN EU AND CustomerCountry IN NI AND TaxIdentifier IS NOT VALID THEN Group IS IntraEUB2C.
- IF MerchantCountry IS NOT IN UK/IM AND CustomerCountry IN UK/IM AND TaxIdentifier IS VALID THEN Group IS ImportB2B.
- IF MerchantCountry IS NOT IN UK/IM AND CustomerCountry IN UK/IM AND OrderValue IS LESS THAN OR EQUAL TO Threshold THEN Group IS ImportTaxed.
- IF MerchantCountry IS NOT IN UK/IM AND CustomerCountry IN UK/IM AND OrderValue IS MORE THAN Threshold THEN Group IS ImportUntaxed.
- ELSE NO GROUP CHANGE
Configuration Options
- Enabled - Enable/Disable this Tax Scheme.
- Tax Identifier Field - Customer Prompt - Displayed under the Tax Identifier field at checkout when a shipping country supported by this module is selected. Use this to include information to the user about why to include their Tax Identifier.
- Validate Online - Whether to validate VAT numbers with the HMRC VAT Validation Service, or just perform simple format validation.
- Environment - Whether to use the Sandbox or Production servers for the HMRC VAT Validation Service.
- VAT Registration Number - The UK VAT Registration Number for the Merchant. This will be provided to HMRC when all validation checks are made. Supplementary functions in AutoCustomerGroup may use this, for example displaying on invoices etc.
- Import VAT Threshold - If the order value is above the VAT Threshold, no VAT should be charged. The threshold here should be in Scheme Currency.
- Use Magento Exchange Rate - To convert from GBP Threshold to Store Currency Threshold, should we use the Magento Exchange Rate, or our own.
- Exchange Rate - The exchange rate to use to convert from GBP Threshold to Store Currency Threshold.
- Customer Group - Domestic - Merchant Country is within the UK/IM, Item is being shipped to the UK/IM.
- Customer Group - Intra-EU B2B - Merchant Country is within the EU, Item is being shipped to NI, VAT Number passed validation by module.
- Customer Group - Intra-EU B2C - Merchant Country is within the EU, Item is being shipped to NI.
- Customer Group - Import B2B - Merchant Country is not within the UK/IM, Item is being shipped to the UK/IM. VAT Number passed validation by module.
- Customer Group - Import Taxed - Merchant Country is not within the UK/IM, Item is being shipped to the UKIM, Order Value is below or equal to Import VAT Threshold.
- Customer Group - Import Untaxed - Merchant Country is not within the UK/Isle of Man, Item is being shipped to the UK/Isle of Man, Order Value is above the Import VAT Threshold.
Integration Tests
No specific setup is required to run the integration tests.
All versions of module-autocustomergroup-uk with dependencies
gwharton/module-autocustomergroup Version *
magento/framework Version *
magento/module-catalog Version *
magento/module-directory Version *
magento/module-quote Version *
magento/module-store Version *
psr/log Version *