|
@@ -150,14 +150,14 @@ const gatherGcl = {
|
|
|
if (((prop === 'total_price' || prop.indexOf('tp') > 0) ||
|
|
|
(prop === 'quantity' || prop.indexOf('qty') > 0)) && data[prop])
|
|
|
{
|
|
|
- gcl[prop] = ctx.helper.add(gcl[f], data[f]);
|
|
|
+ gcl[prop] = ctx.helper.add(gcl[prop], data[prop]);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
_gatherTpField: function (ctx, gcl, data) {
|
|
|
for (const prop in data) {
|
|
|
if ((prop === 'total_price' || prop.indexOf('tp') > 0) && data[prop]) {
|
|
|
- gcl[prop] = ctx.helper.add(gcl[f], data[f]);
|
|
|
+ gcl[prop] = ctx.helper.add(gcl[prop], data[prop]);
|
|
|
}
|
|
|
}
|
|
|
},
|