gwharton/module-autocustomergroup-norway 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gwharton/module-autocustomergroup-norway

Composer 安装命令:

composer require gwharton/module-autocustomergroup-norway

包简介

README 文档

README

Magento 2 Module - Module to add Norway functionality to gwharton/module-autocustomergroup

Norwegian VOEC Scheme

This Scheme applies to shipments being sent from anywhere in the world to Consumers (Not B2B transactions) in Norway.

As of 1st April 2020, all sellers must (if their turnover to Norway exceeds 50,000 NOK) register for the Norway VOEC scheme, and collect Norwegian VAT for B2C transactions at the point of sale and remit to the Norwegian Government.

The module is capable of automatically assigning customers to the following categories.

  • Domestic - For shipments within Norway, normal Norway VAT rules apply.
  • Import B2B - For shipments from outside of Norway to Norway and the buyer presents a Norway Business Number, then VAT should not be charged.
  • Import Taxed - For imports into Norway, where the value of each individual item is below or equal to 3,000 NOK, then Norway VAT should be charged.
  • Import Untaxed - For imports into Norway, where one or more individual items value is above 3,000 NOK, then VAT should NOT be charged and instead will be collected at the Norwegian 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 Norwegian Tax Administration website here.

Order Value

For the Norway VOEC Scheme, the following applies (This can be confirmed in Section 4) :

  • 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.

The Online Stores and Marketplace Guidelines refers to bundling in Section 4 where it states that multiple items can be shipped in a single shipment, and it is the cost of each item that determines whether VAT should be charged on each item, so a consignment of 10 items, each sold for 1,000 NOK, should still have VAT charged at the point of sale even though the total order value exceeds 3,000 NOK. The guidance recommends if an order contains a mix of above and below threshold items, that the order is split into separate orders. Because of this, this module assumes that if any one single item in a shipment is above the threshold in value, then the entire order does not have VAT applied. Orders sent in this way will be processed at the Norwegian border with VAT being charged as appropriate. This is still in accordance with Section 4 of the above guidance.

More information on the scheme can be found on the Norwegian Tax Administration Website

VAT Number Verification

Norwegian Business Numbers are verified by a simple test that they are 9 digit numbers beginning with 8 or 9. No online lookups are performed.

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 IS Norway AND CustomerCountry IS Norway THEN Group IS Domestic.
  • IF MerchantCountry IS NOT Norway AND CustomerCountry IS Norway AND TaxIdentifier IS VALID THEN Group IS ImportB2B.
  • IF MerchantCountry IS NOT Norway AND CustomerCountry IS Norway AND OrderValue IS LESS THAN OR EQUAL TO Threshold THEN Group IS ImportTaxed.
  • IF MerchantCountry IS NOT Norway AND CustomerCountry IS Norway 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.
  • VOEC Registration Number - The Norway VOEC Registration Number for the Merchant. This is not currently used by the module, however supplementary functions in AutoCustomerGroup may use this, for example displaying on invoices etc.
  • Import VAT Threshold - If any single item within the order is valued above the VAT threshold then no VAT should be charged.
  • Use Magento Exchange Rate - To convert from NOK 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 NOK Threshold to Store Currency Threshold.
  • Customer Group - Domestic - Merchant Country is within Norway, Item is being shipped to Norway.
  • Customer Group - Import B2B - Merchant Country is not within Norway, Item is being shipped to Norway, Norwegian Business Number passed validation by module.
  • Customer Group - Import Taxed - Merchant Country is not within Norway, Item is being shipped to Norway, All items valued at or below the Import VAT Threshold.
  • Customer Group - Import Untaxed - Merchant Country is not within Norway, Item is being shipped to Norway, One or more items in the order is valued above the Import VAT Threshold.

Integration Tests

No specific setup is required to run the integration tests.

gwharton/module-autocustomergroup-norway 适用场景与选型建议

gwharton/module-autocustomergroup-norway 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 664 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 gwharton/module-autocustomergroup-norway 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 gwharton/module-autocustomergroup-norway 我们能提供哪些服务?
定制开发 / 二次开发

基于 gwharton/module-autocustomergroup-norway 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 664
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2024-09-09