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:
alext 2018-02-02 14:48:22 +01:00
parent 75b7fe69f6
commit 71b847135a
1 changed files with 0 additions and 3 deletions

View File

@ -789,11 +789,8 @@ class Appointments extends CI_Controller {
$provider_appointments = $this->appointments_model->get_batch([
'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
// the providers' available time periods would be without them.
foreach ($excluded_appointment_ids as $excluded_appointment_id)