Merge branch 'release/2026.01.08' into feature/CASH-1790-refactor-1
This commit is contained in:
commit
bfa700ffda
1 changed files with 15 additions and 7 deletions
|
|
@ -1798,18 +1798,26 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isShowMobileFirstAppt) {
|
if (this.isShowMobileFirstAppt) {
|
||||||
if (firstMobilePMDate && numberOfDaysToFirstMobilePMDate <= pmMobileDays) {
|
if (pmMobileDays == 0) {
|
||||||
|
// Selects the first available time slot
|
||||||
|
preSelectedMobileAppointment =
|
||||||
|
numberOfDaysToFirstMobileAMDate < numberOfDaysToFirstMobilePMDate
|
||||||
|
? firstMobileAMAppt
|
||||||
|
: firstMobilePMAppt;
|
||||||
|
} else if (
|
||||||
|
firstMobilePMDate &&
|
||||||
|
numberOfDaysToFirstMobilePMDate <= pmMobileDays
|
||||||
|
) {
|
||||||
|
// Selects the first available PM time slot
|
||||||
preSelectedMobileAppointment = firstMobilePMAppt;
|
preSelectedMobileAppointment = firstMobilePMAppt;
|
||||||
} else if (
|
} else if (
|
||||||
(firstMobilePMDate &&
|
firstMobilePMDate &&
|
||||||
numberOfDaysToFirstMobilePMDate >= noPMMobileDays) ||
|
numberOfDaysToFirstMobilePMDate >= noPMMobileDays
|
||||||
pmMobileDays == 0
|
|
||||||
) {
|
) {
|
||||||
|
// Selects the first available AM time slot. If none, selects the first available PM time slot
|
||||||
preSelectedMobileAppointment = firstMobileAMAppt
|
preSelectedMobileAppointment = firstMobileAMAppt
|
||||||
? firstMobileAMAppt
|
? firstMobileAMAppt
|
||||||
: null;
|
: firstMobilePMAppt;
|
||||||
!preSelectedMobileAppointment &&
|
|
||||||
(preSelectedMobileAppointment = firstMobilePMAppt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preSelectedMobileAppointment) {
|
if (preSelectedMobileAppointment) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue