CASH-1637
CASH-1637 correcting fields iteratively since dev environment is unstable
This commit is contained in:
parent
6f5344c583
commit
85cad5a6ce
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue