File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Tax/view/frontend/web/js/view/checkout/summary Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ define([
108
108
*/
109
109
getTaxAmount : function ( parent , percentage ) {
110
110
var totalPercentage = 0 ;
111
+
111
112
taxAmount = parent . amount ;
112
113
rates = parent . rates ;
113
114
_ . each ( rates , function ( rate ) {
@@ -118,13 +119,13 @@ define([
118
119
} ,
119
120
120
121
/**
121
- * @param {* } taxAmount
122
+ * @param {* } amount
122
123
* @param {* } totalPercentage
123
124
* @param {* } percentage
124
125
* @return {*|String }
125
126
*/
126
- getPercentAmount : function ( taxAmount , totalPercentage , percentage ) {
127
- return parseFloat ( ( taxAmount * percentage ) / totalPercentage ) ;
127
+ getPercentAmount : function ( amount , totalPercentage , percentage ) {
128
+ return parseFloat ( amount * percentage / totalPercentage ) ;
128
129
} ,
129
130
130
131
/**
You can’t perform that action at this time.
0 commit comments