Skip to content

Commit e5f5ece

Browse files
committed
ENGCOM-4022: Static test fix.
1 parent 1c6138c commit e5f5ece

File tree

1 file changed

+4
-3
lines changed
  • app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary

1 file changed

+4
-3
lines changed

app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary/tax.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ define([
108108
*/
109109
getTaxAmount: function (parent, percentage) {
110110
var totalPercentage = 0;
111+
111112
taxAmount = parent.amount;
112113
rates = parent.rates;
113114
_.each(rates, function (rate) {
@@ -118,13 +119,13 @@ define([
118119
},
119120

120121
/**
121-
* @param {*} taxAmount
122+
* @param {*} amount
122123
* @param {*} totalPercentage
123124
* @param {*} percentage
124125
* @return {*|String}
125126
*/
126-
getPercentAmount: function (taxAmount, totalPercentage, percentage) {
127-
return parseFloat((taxAmount * percentage) / totalPercentage);
127+
getPercentAmount: function (amount, totalPercentage, percentage) {
128+
return parseFloat(amount * percentage / totalPercentage);
128129
},
129130

130131
/**

0 commit comments

Comments
 (0)