CSR-1629
CJ pixel amount format
This commit is contained in:
parent
26b465f9ec
commit
ca6c05a65f
1 changed files with 14 additions and 5 deletions
|
|
@ -583,6 +583,15 @@ export default {
|
||||||
);
|
);
|
||||||
coupons = promoString;
|
coupons = promoString;
|
||||||
}
|
}
|
||||||
|
const serviceZipPackage = submittedOrder.lineItems?.supportingItems?.find(
|
||||||
|
(x) => x.partType == "SERVICE PACKAGE DISCOUNT"
|
||||||
|
);
|
||||||
|
if (isDefined(serviceZipPackage)) {
|
||||||
|
if (coupons) {
|
||||||
|
coupons += ",";
|
||||||
|
}
|
||||||
|
coupons += serviceZipPackage.partNumber;
|
||||||
|
}
|
||||||
refSequenceNum = submittedOrder.referralSequenceNumber;
|
refSequenceNum = submittedOrder.referralSequenceNumber;
|
||||||
|
|
||||||
if (isDefined(submittedOrder.payment.isInsurance)) {
|
if (isDefined(submittedOrder.payment.isInsurance)) {
|
||||||
|
|
@ -607,10 +616,10 @@ export default {
|
||||||
isDefined(lineItem.sellingPrice)
|
isDefined(lineItem.sellingPrice)
|
||||||
);
|
);
|
||||||
if (accountType == "cash" && isPricingAvailable) {
|
if (accountType == "cash" && isPricingAvailable) {
|
||||||
const quoteAmountWithDiscount = baseMixin.methods
|
amount = baseMixin.methods.getTotalPriceOfAllLineItemsAndChildParts(
|
||||||
.getTotalPriceOfAllLineItemsAndChildParts(combinedLineItems, false)
|
combinedLineItems,
|
||||||
.toFixed(2);
|
false
|
||||||
amount = parseFloat(quoteAmountWithDiscount);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -619,7 +628,7 @@ export default {
|
||||||
commissionJunctionGtmData: {
|
commissionJunctionGtmData: {
|
||||||
cj_commission_junction_event: cjEvent,
|
cj_commission_junction_event: cjEvent,
|
||||||
cj_referral_sequence_number: refSequenceNum,
|
cj_referral_sequence_number: refSequenceNum,
|
||||||
cj_amount: amount.toString(),
|
cj_amount: amount.toFixed(2),
|
||||||
cj_repair_replace: repairReplace,
|
cj_repair_replace: repairReplace,
|
||||||
cj_coupon: coupons,
|
cj_coupon: coupons,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue