@@ -73,7 +73,7 @@ define([
73
73
var prices = this . cache . displayPrices ,
74
74
additionalPrice = { } ,
75
75
pricesCode = [ ] ,
76
- priceValue , origin , final ;
76
+ priceValue , origin , finalPrice ;
77
77
78
78
this . cache . additionalPriceObject = this . cache . additionalPriceObject || { } ;
79
79
@@ -114,15 +114,15 @@ define([
114
114
} else {
115
115
_ . each ( additionalPrice , function ( option , priceCode ) {
116
116
origin = this . options . prices [ priceCode ] || { } ;
117
- final = prices [ priceCode ] || { } ;
117
+ finalPrice = prices [ priceCode ] || { } ;
118
118
option . amount = option . amount || 0 ;
119
119
origin . amount = origin . amount || 0 ;
120
120
origin . adjustments = origin . adjustments || { } ;
121
- final . adjustments = final . adjustments || { } ;
121
+ finalPrice . adjustments = finalPrice . adjustments || { } ;
122
122
123
- final . amount = 0 + origin . amount + option . amount ;
123
+ finalPrice . amount = 0 + origin . amount + option . amount ;
124
124
_ . each ( option . adjustments , function ( pa , paCode ) {
125
- final . adjustments [ paCode ] = 0 + ( origin . adjustments [ paCode ] || 0 ) + pa ;
125
+ finalPrice . adjustments [ paCode ] = 0 + ( origin . adjustments [ paCode ] || 0 ) + pa ;
126
126
} ) ;
127
127
} , this ) ;
128
128
}
0 commit comments