Merge pull request #2881 from Safelite/nation/CASH-1637

CASH-1637
This commit is contained in:
CarlNation 2025-10-07 15:38:39 -04:00 committed by GitHub
commit a73410fc27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,7 @@ export default {
? order?.serviceLocation?.provider?.address?.zipCodeCtu
: order?.serviceLocation?.zipCodeCtu;
label.subTotalPrice = getSubTotal(order?.lineItems);
label.totalPrice = getAmountDue(order?.lineItems);
label.totalPrice = getAmountDue(order?.lineItems, true);
await this.pushEventToGA(
GaCategories.FMG_SESSION_DATA,
@ -237,9 +237,16 @@ export default {
(lineItem) => lineItem.partType == partTypeStrings.EARLY_BIRD
);
const promoCodes = Array.isArray(order?.lineItems?.promos)
? order?.lineItems?.promos
.map((item) => item.promoCode)
.filter((code) => code)
.join(", ")
: "";
label = {};
label.serviceType = order?.serviceLocation?.appointmentType;
label.promoCodes = order?.lineItems?.promos;
label.promoCodes = promoCodes;
label.hasTechnicianNotes = order?.serviceLocation?.techNotes ? true : false;
label.paymentMethod = order?.payment?.piaType;
label.isTextingOptedIn = order?.customer?.isSmsOptIn ? true : false;