You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the active tax zone changes, this might affect the price of OrderItems in the active order. For instance, during checkout, the customer might set the country to one in a different zone when invoking the setShippingOrderAddress mutation.
Currently, the listPrice and listPriceIncludesTax will remain as it was at the time the OrderItem was added to the order.
To Reproduce
Steps to reproduce the behavior:
Create a TaxZoneStrategy which sets the active tax zone based on order.shippingAddress.countryCode if it is set.
Have the default channel set to pricesIncludeTax: true and the default zone's tax rate to 20%
Create a ProductVariant "Foo" with a price of $100. This $100 will include tax for the default zone, so the actual net price is $83.33.
Add Foo to an order, see the price as $100.
Set the order shippingAddress country to be a country outside the Channel's default tax zone. This new zone should have a tax rate of 0%.
Expected behavior
The price of Foo in the order should now be reflected as $83.33, because the default Zone's tax rate of 20% has been removed, and the new tax rate of 0% has been applied.
But in actuality it will remain as $100.
Environment (please complete the following information):
@vendure/core version: 1.3.3
Nodejs version: any
Database (mysql/postgres etc): any
The text was updated successfully, but these errors were encountered:
Describe the bug
When the active tax zone changes, this might affect the price of OrderItems in the active order. For instance, during checkout, the customer might set the country to one in a different zone when invoking the
setShippingOrderAddress
mutation.Currently, the
listPrice
andlistPriceIncludesTax
will remain as it was at the time the OrderItem was added to the order.To Reproduce
Steps to reproduce the behavior:
order.shippingAddress.countryCode
if it is set.pricesIncludeTax: true
and the default zone's tax rate to 20%Expected behavior
The price of Foo in the order should now be reflected as $83.33, because the default Zone's tax rate of 20% has been removed, and the new tax rate of 0% has been applied.
But in actuality it will remain as $100.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: