Skip to content

Commit 595cc35

Browse files
authored
Update booking.js
update unavailable dates while rescheduling
1 parent a3389ec commit 595cc35

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

assets/js/pages/booking.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,15 @@ App.Pages.Booking = (function () {
874874
App.Utils.UI.setDateTimePickerValue($selectDate, startMoment.toDate());
875875
App.Http.Booking.getAvailableHours(startMoment.format('YYYY-MM-DD'));
876876

877+
// Update unavailable dates while in manage mode
878+
879+
App.Http.Booking.getUnavailableDates(
880+
appointment.id_users_provider,
881+
appointment.id_services,
882+
startMoment.format('YYYY-MM-DD')
883+
);
884+
885+
877886
// Apply Customer's Data
878887
$lastName.val(customer.last_name);
879888
$firstName.val(customer.first_name);

0 commit comments

Comments
 (0)