|
|
|
|
@ -44,6 +44,7 @@ class AppointmentsVM extends BaseVM {
|
|
|
|
|
required this.providerRepo,
|
|
|
|
|
required this.commonRepo});
|
|
|
|
|
|
|
|
|
|
bool isUpcommingEnabled = true;
|
|
|
|
|
bool isFetchingLists = false;
|
|
|
|
|
int selectedBranch = 0;
|
|
|
|
|
int selectedAppointmentIndex = 0;
|
|
|
|
|
@ -374,7 +375,7 @@ class AppointmentsVM extends BaseVM {
|
|
|
|
|
myFilteredAppointments = myAppointments;
|
|
|
|
|
myUpComingAppointments = myAppointments
|
|
|
|
|
.where((element) =>
|
|
|
|
|
element.appointmentStatusEnum == AppointmentStatusEnum.booked)
|
|
|
|
|
element.appointmentStatusEnum == AppointmentStatusEnum.confirmed)
|
|
|
|
|
.toList();
|
|
|
|
|
setState(ViewState.idle);
|
|
|
|
|
// applyFilterOnAppointmentsVM(appointmentStatusEnum: AppointmentStatusEnum.allAppointments);
|
|
|
|
|
@ -407,7 +408,7 @@ class AppointmentsVM extends BaseVM {
|
|
|
|
|
myFilteredAppointments = myAppointments;
|
|
|
|
|
myUpComingAppointments = myAppointments
|
|
|
|
|
.where((element) =>
|
|
|
|
|
element.appointmentStatusEnum == AppointmentStatusEnum.booked)
|
|
|
|
|
element.appointmentStatusEnum == AppointmentStatusEnum.booked)
|
|
|
|
|
.toList();
|
|
|
|
|
|
|
|
|
|
applyFilterOnAppointmentsVM(
|
|
|
|
|
@ -456,7 +457,7 @@ class AppointmentsVM extends BaseVM {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<MResponse> createMergeAppointment(Map<String, dynamic> map,
|
|
|
|
|
Future<MResponse> createMergeAppointment(Map<String, dynamic> map,
|
|
|
|
|
{bool isNeedToRebuild = false}) async {
|
|
|
|
|
if (isNeedToRebuild) setState(ViewState.busy);
|
|
|
|
|
MResponse genericRespModel =
|
|
|
|
|
|