[#1210] How it work when service follows the company schedule but doesnt have its own schedule?

Migrated from Redmine #1210 | Author: Ngoc Phung
Status: New | Priority: High, I’m very impatient | Created: 2024-04-10


Our company is https://marbodaltest.secure.nobia.enterpriseappointments.com/

I have a case, when provider id 3 has schedule working schedule 01:00-06:00 on April 30, service id 5 doesnt have its own schedule but it just follows Company schedule 08:00-23:45

My expectation is that, there should be no available slots for April 30, because provider’s schedule do not overlap service’schedule.

However when checking getSchedule endpoint https://user-api-v2.enterpriseappointments.com/admin/schedule?date_from=2024-04-30&date_to=2024-04-30&service_id=5&provider_id[]=3
there is timing returned
[
{
“id”: “2024-04-30”,
“date”: “2024-04-30”,
“time_from”: “01:00:00”,
“time_to”: “06:00:00”,
“is_day_off”: false
}
]

Is this how it should work? I thought 01:00-06:00 and 08:00-23:45 do not overlap eact other, so time_from and time_to should be both 00:00?

Redmine Admin wrote:

hi, daily schedule has higher priority. If provider has it but service don’t then provider schedule will be used