Customer Tax Group not applied on order creation #10412
Labels
bug report
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Progress: needs update
Preconditions
Steps to reproduce
Customer Tax Classes
(Retail/Company)Tax Rates
(21%/0%) and applied them withTax Rule
Enable Automatic Assignment to Customer Group
and selected correctCustomer Tax Classes
based onBilling Address
andValidate on each transaction
Expected result
In the store front everything works as expected. The prices during checkout are calculated with different
Tax Rates
based on the billing address with and withoutVAT ID
.BUT the
Order
is saved with theRetail
tax values, even though theCompany
tax group is saved properly.So both the admin
Sales -> Orders
andAPI
show that order correctly with theCompany
customer tax group, but the tax rates are applied from theRetail
class.Actual result
Workaround
Fixed this by modifing
app/code/Magento/Quote/Model/QuoteManagement.php
by adding 3 lines after the first one in the following method:This forces Magento to recollect prices according to the billing address before saving it to the database.
Also this link for reference: https://magento.stackexchange.com/questions/187479/customer-tax-group-not-applied-on-order-creation/187587#187587
The text was updated successfully, but these errors were encountered: