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

Commit 4c06d23

Browse files
author
Tomasz Kostuch
authored
Merge pull request #464 from didkan/bugfix/463
Bugfix/original_price not calculated correctly due to tax bug
2 parents 29d4ce5 + 37ae7f4 commit 4c06d23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/platform/magento1/tax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class TaxProxy extends AbstractTaxProxy {
3939
taxCountry = this._config.tax.defaultCountry
4040
}
4141
}
42-
if (sourcePriceInclTax === null) {
42+
if (sourcePriceInclTax == null) {
4343
sourcePriceInclTax = this._config.tax.sourcePriceIncludesTax
4444
}
45-
if (finalPriceInclTax === null) {
45+
if (finalPriceInclTax == null) {
4646
finalPriceInclTax = this._config.tax.finalPriceIncludesTax
4747
}
4848
this._deprecatedPriceFieldsSupport = this._config.tax.deprecatedPriceFieldsSupport

src/platform/magento2/tax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ class TaxProxy extends AbstractTaxProxy {
3838
taxCountry = this._config.tax.defaultCountry
3939
}
4040
}
41-
if (sourcePriceInclTax === null) {
41+
if (sourcePriceInclTax == null) {
4242
sourcePriceInclTax = this._config.tax.sourcePriceIncludesTax
4343
}
44-
if (finalPriceInclTax === null) {
44+
if (finalPriceInclTax == null) {
4545
finalPriceInclTax = this._config.tax.finalPriceIncludesTax
4646
}
4747
this._deprecatedPriceFieldsSupport = this._config.tax.deprecatedPriceFieldsSupport

0 commit comments

Comments
 (0)