Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 2d68607

Browse files
authored
Merge pull request #359 from afirlejczyk/bugfix/taxcalc
taxcalc.js - fix issue with deprecatedPriceFieldsSupport config.
2 parents 895cbb3 + deb8304 commit 2d68607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/taxcalc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function calculateProductTax ({ product, taxClasses, taxCountry = 'PL', t
169169
}
170170
}
171171
if (!rateFound) {
172-
updateProductPrices({ product, rate: {rate: 0} })
172+
updateProductPrices({ product, rate: {rate: 0}, sourcePriceInclTax, deprecatedPriceFieldsSupport })
173173

174174
product.price_incl_tax = product.price
175175
product.price_tax = 0

0 commit comments

Comments
 (0)