CASH-2098
CASH-2098 log msg is not MSR specific all of the time. cleanup
This commit is contained in:
parent
bef358aff7
commit
ab7a541dfa
1 changed files with 8 additions and 8 deletions
|
|
@ -1870,40 +1870,40 @@ export default {
|
||||||
const shouldExposeMobileFirstAppointment = () => {
|
const shouldExposeMobileFirstAppointment = () => {
|
||||||
const mobileFirstDaysCheck = (firstMobileAMDate && numberOfDaysToFirstMobileAMDate <= noMobileAvailableDays) ||
|
const mobileFirstDaysCheck = (firstMobileAMDate && numberOfDaysToFirstMobileAMDate <= noMobileAvailableDays) ||
|
||||||
(firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= noMobileAvailableDays);
|
(firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= noMobileAvailableDays);
|
||||||
debugLog("MSR::: Mobile First Days Check:", mobileFirstDaysCheck);
|
debugLog("::: Mobile First Days Check:", mobileFirstDaysCheck);
|
||||||
|
|
||||||
if (mobileFirstPopupRepairSetting === "false" &&
|
if (mobileFirstPopupRepairSetting === "false" &&
|
||||||
mobileFirstPopupReplaceWithoutMsrSetting === "false" &&
|
mobileFirstPopupReplaceWithoutMsrSetting === "false" &&
|
||||||
mobileFirstPopupReplaceWithMsrSetting === "false") {
|
mobileFirstPopupReplaceWithMsrSetting === "false") {
|
||||||
debugLog("MSR::: Mobile First Damage Popup settings are all false, using default check.");
|
debugLog("::: Mobile First Damage Popup settings are all false, using default check.");
|
||||||
return mobileFirstDaysCheck;
|
return mobileFirstDaysCheck;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isRepair) {
|
if (isRepair) {
|
||||||
if (mobileFirstPopupRepairSetting === "true") {
|
if (mobileFirstPopupRepairSetting === "true") {
|
||||||
debugLog("MSR::: Mobile First Popup Repair setting is true, showing mobile first appointment for repair.");
|
debugLog("::: Mobile First Popup Repair setting is true, showing mobile first appointment for repair.");
|
||||||
return mobileFirstDaysCheck;
|
return mobileFirstDaysCheck;
|
||||||
} else {
|
} else {
|
||||||
debugLog("MSR::: Mobile First Popup Repair setting is false, not showing mobile first appointment for repair.");
|
debugLog("::: Mobile First Popup Repair setting is false, not showing mobile first appointment for repair.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isMobileStaticRecalibrationApplicable) {
|
if (this.isMobileStaticRecalibrationApplicable) {
|
||||||
if (mobileFirstPopupReplaceWithMsrSetting === "true") {
|
if (mobileFirstPopupReplaceWithMsrSetting === "true") {
|
||||||
debugLog("MSR::: Mobile First Popup Replace with MSR setting is true, showing mobile first appointment for replace with MSR.");
|
debugLog("::: Mobile First Popup Replace with MSR setting is true, showing mobile first appointment for replace with MSR.");
|
||||||
return mobileFirstDaysCheck;
|
return mobileFirstDaysCheck;
|
||||||
} else {
|
} else {
|
||||||
debugLog("MSR::: Mobile First Popup Replace with MSR setting is false, not showing mobile first appointment for replace with MSR.");
|
debugLog("::: Mobile First Popup Replace with MSR setting is false, not showing mobile first appointment for replace with MSR.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mobileFirstPopupReplaceWithoutMsrSetting === "true") {
|
if (mobileFirstPopupReplaceWithoutMsrSetting === "true") {
|
||||||
debugLog("MSR::: Mobile First Popup Replace without MSR setting is true, showing mobile first appointment for replace without MSR.");
|
debugLog("::: Mobile First Popup Replace without MSR setting is true, showing mobile first appointment for replace without MSR.");
|
||||||
return mobileFirstDaysCheck;
|
return mobileFirstDaysCheck;
|
||||||
} else {
|
} else {
|
||||||
debugLog("MSR::: Mobile First Popup Replace without MSR setting is false, not showing mobile first appointment for replace without MSR.");
|
debugLog("::: Mobile First Popup Replace without MSR setting is false, not showing mobile first appointment for replace without MSR.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue