From cf8ef25d64120c90e7e7a7ac49719cbe884adadc Mon Sep 17 00:00:00 2001 From: raoulritter <59527829+raoulritter@users.noreply.github.com> Date: Wed, 8 Nov 2023 15:24:26 +0100 Subject: [PATCH] [ECP-8701] - Fix the Taxation for 2.4.6 (#52) --- view/frontend/web/js/applepay/button.js | 4 ++-- view/frontend/web/js/googlepay/button.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/view/frontend/web/js/applepay/button.js b/view/frontend/web/js/applepay/button.js index 111bc77..7a7ecf3 100644 --- a/view/frontend/web/js/applepay/button.js +++ b/view/frontend/web/js/applepay/button.js @@ -319,7 +319,7 @@ define([ applePayShippingContactUpdate.newShippingMethods = shippingMethods; applePayShippingContactUpdate.newTotal = { label: $t('Grand Total'), - amount: (response.grand_total + response.tax_amount).toString() + amount: (response.grand_total).toString() }; applePayShippingContactUpdate.newLineItems = [ { @@ -388,7 +388,7 @@ define([ applePayShippingMethodUpdate.newTotal = { type: 'final', label: $t('Grand Total'), - amount: (response.grand_total + response.tax_amount).toString() + amount: (response.grand_total).toString() }; applePayShippingMethodUpdate.newLineItems = [ { diff --git a/view/frontend/web/js/googlepay/button.js b/view/frontend/web/js/googlepay/button.js index 18c570c..cc19c9c 100644 --- a/view/frontend/web/js/googlepay/button.js +++ b/view/frontend/web/js/googlepay/button.js @@ -356,7 +356,7 @@ define([ ], currencyCode: totals.quote_currency_code, totalPriceStatus: 'FINAL', - totalPrice: (totals.grand_total+ totals.tax_amount).toString(), + totalPrice: (totals.grand_total).toString(), totalPriceLabel: 'Total', countryCode: configModel().getConfig().countryCode }