CASH-2098

CASH-2098 log msg is not MSR specific all of the time.  cleanup
This commit is contained in:
CarlNation 2026-01-29 09:07:13 -05:00
parent bef358aff7
commit ab7a541dfa

View file

@ -1870,40 +1870,40 @@ export default {
const shouldExposeMobileFirstAppointment = () => {
const mobileFirstDaysCheck = (firstMobileAMDate && numberOfDaysToFirstMobileAMDate <= noMobileAvailableDays) ||
(firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= noMobileAvailableDays);
debugLog("MSR::: Mobile First Days Check:", mobileFirstDaysCheck);
debugLog("::: Mobile First Days Check:", mobileFirstDaysCheck);
if (mobileFirstPopupRepairSetting === "false" &&
mobileFirstPopupReplaceWithoutMsrSetting === "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;
}
if (isRepair) {
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;
} 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;
}
}
if (this.isMobileStaticRecalibrationApplicable) {
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;
} 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;
}
}
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;
} 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;
}
};