@@ -116,7 +116,7 @@ export function updateProductPrices ({ product, rate, sourcePriceInclTax = false
116116 // out of the dates period
117117 assignPrice ( { product, target : 'special_price' , price : 0 , tax : 0 , deprecatedPriceFieldsSupport} )
118118 } else {
119- assignPrice ( { product, target : 'price' , price : product . special_price , deprecatedPriceFieldsSupport} )
119+ assignPrice ( { product, target : 'price' , ... specialPriceWithTax , deprecatedPriceFieldsSupport} )
120120 }
121121 } else {
122122 // the same price as original; it's not a promotion
@@ -170,15 +170,15 @@ export function calculateProductTax ({ product, taxClasses, taxCountry = 'PL', t
170170 if ( taxClass ) {
171171 for ( let rate of taxClass . rates ) { // TODO: add check for zip code ranges (!)
172172 if ( rate . tax_country_id === taxCountry && ( rate . region_name === taxRegion || rate . tax_region_id === 0 || ! rate . region_name ) ) {
173- updateProductPrices ( { product, rate, sourcePriceInclTax, deprecatedPriceFieldsSupport } )
173+ updateProductPrices ( { product, rate, sourcePriceInclTax, deprecatedPriceFieldsSupport, finalPriceInclTax } )
174174 rateFound = true
175175 break
176176 }
177177 }
178178 }
179179 }
180180 if ( ! rateFound ) {
181- updateProductPrices ( { product, rate : { rate : 0 } , sourcePriceInclTax, deprecatedPriceFieldsSupport } )
181+ updateProductPrices ( { product, rate : { rate : 0 } , sourcePriceInclTax, deprecatedPriceFieldsSupport, finalPriceInclTax } )
182182
183183 product . price_incl_tax = product . price
184184 product . price_tax = 0
0 commit comments