prettier
This commit is contained in:
parent
f245bfe630
commit
6f8718e835
1 changed files with 2 additions and 2 deletions
|
|
@ -3788,14 +3788,14 @@ function supportingItemsEqual(supportingItemsA, supportingItemsB) {
|
||||||
// check to see if we have an appointment date on the order object.
|
// check to see if we have an appointment date on the order object.
|
||||||
// if so, make sure it's not in the past. if in the past, clear schedule info in store.
|
// if so, make sure it's not in the past. if in the past, clear schedule info in store.
|
||||||
// if date not in past, then call schedule service to verify appointment is still available.
|
// if date not in past, then call schedule service to verify appointment is still available.
|
||||||
async function resetScheduleIfUnavailable(context, order, pageNameToLog) {
|
async function resetScheduleIfUnavailable(context, order, pageNameToLog) {
|
||||||
// lineItems empty can happen when a customer goes all the way through scheduling as cash but then
|
// lineItems empty can happen when a customer goes all the way through scheduling as cash but then
|
||||||
// switches to insurance AND also switches vehicles during policy lookup. If you call shop-time-slots
|
// switches to insurance AND also switches vehicles during policy lookup. If you call shop-time-slots
|
||||||
// without parts, you get 500 errors so skip the call.
|
// without parts, you get 500 errors so skip the call.
|
||||||
const lineItems = getArrayOfAllLineItemsAndChildParts(order.lineItems);
|
const lineItems = getArrayOfAllLineItemsAndChildParts(order.lineItems);
|
||||||
|
|
||||||
if (!order.schedule?.date || lineItems.length === 0) {
|
if (!order.schedule?.date || lineItems.length === 0) {
|
||||||
console.log(new Date() + " no schedule date or lineItems. skip resetSchedule logic.")
|
console.log(new Date() + " no schedule date or lineItems. skip resetSchedule logic.");
|
||||||
console.log(new Date() + " schedule.schedule.date" + JSON.stringify(order.schedule));
|
console.log(new Date() + " schedule.schedule.date" + JSON.stringify(order.schedule));
|
||||||
console.log(new Date() + " lineItems" + JSON.stringify(order.lineItems));
|
console.log(new Date() + " lineItems" + JSON.stringify(order.lineItems));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue