MDVA-42520: The tax rate is applied twice when the Enable Cross Border Trade is used
The tax rate is applied twice when the Enable Cross Border Trade is used. Quality patch MDVA-42520 for magento/module-negotiable-quote applies to Magento Open Source and Adobe Commerce 2.4.3 to 2.4.3-p3.
- Categories
- Price/Tax
- Components
- magento/module-negotiable-quote
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.11
Issue
The tax rate is applied twice when the Enable Cross Border Trade is used.
Steps to reproduce
1. Enable Company, Shared Catalog, and Quote 1. Configure taxes according to the screenshot. Make sure you enable Cross Border Trade. !Tax configuration settings page showing cross-border trade options and rate calculations{width="700"} 1. Create a tax rate for Germany (10%). 1. Create a tax rule to apply the tax rate. 1. Create a company and a custom shared catalog. 1. Create a product with a price of 100 and include it in the custom shared catalog with a price discount of 20%. 1. Create a customer with a German address and assign it to the company 1. Add 10 products to the card as the customer. 1. Go to the shopping cart and request a quote. 1. Open this quote on the backend and try to add an additional 10% discount.
Adobe's page lists 2.4.3 - 2.4.3-p1 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.5.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply MDVA-42520. On Cloud, add MDVA-42520 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-42520/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-b2b-base >=1.3.2 <1.3.3
- Magento Open Source
- —
- vendor/magento/module-negotiable-quote/Model/Customer/StoreCustomerRate.php
