mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
The availabilities generation must take into concern events that belong in the past but end at some time in the future.
This commit is contained in:
parent
75b7fe69f6
commit
71b847135a
1 changed files with 0 additions and 3 deletions
|
@ -789,11 +789,8 @@ class Appointments extends CI_Controller {
|
||||||
|
|
||||||
$provider_appointments = $this->appointments_model->get_batch([
|
$provider_appointments = $this->appointments_model->get_batch([
|
||||||
'id_users_provider' => $provider_id,
|
'id_users_provider' => $provider_id,
|
||||||
'DATE(start_datetime)' => $selected_date
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$service = $this->services_model->get_row($service_id);
|
|
||||||
|
|
||||||
// Sometimes it might be necessary to not take into account some appointment records in order to display what
|
// Sometimes it might be necessary to not take into account some appointment records in order to display what
|
||||||
// the providers' available time periods would be without them.
|
// the providers' available time periods would be without them.
|
||||||
foreach ($excluded_appointment_ids as $excluded_appointment_id)
|
foreach ($excluded_appointment_ids as $excluded_appointment_id)
|
||||||
|
|
Loading…
Reference in a new issue