CASH-1637

CASH-1637 correcting fields iteratively since dev environment is unstable
This commit is contained in:
CarlNation 2025-10-07 14:57:12 -04:00
parent 6f5344c583
commit 85cad5a6ce

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,14 @@ export default {
(lineItem) => lineItem.partType == partTypeStrings.EARLY_BIRD
);
const promoCodes = 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;