Skip to content

Commit

Permalink
ENGCOM-4809: Fix configurable dropdown showing tax incorrectly in 2.3…
Browse files Browse the repository at this point in the history
…-develop #22466
  • Loading branch information
sivaschenko authored Apr 28, 2019
2 parents 49ad674 + 9224327 commit 791fa44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ define([
allowedProducts,
i,
j,
basePrice = parseFloat(this.options.spConfig.prices.basePrice.amount),
finalPrice = parseFloat(this.options.spConfig.prices.finalPrice.amount),
optionFinalPrice,
optionPriceDiff,
optionPrices = this.options.spConfig.optionPrices,
Expand Down Expand Up @@ -410,7 +410,7 @@ define([
typeof optionPrices[allowedProducts[0]] !== 'undefined') {
allowedProductMinPrice = this._getAllowedProductWithMinPrice(allowedProducts);
optionFinalPrice = parseFloat(optionPrices[allowedProductMinPrice].finalPrice.amount);
optionPriceDiff = optionFinalPrice - basePrice;
optionPriceDiff = optionFinalPrice - finalPrice;

if (optionPriceDiff !== 0) {
options[i].label = options[i].label + ' ' + priceUtils.formatPrice(
Expand Down

0 comments on commit 791fa44

Please sign in to comment.