[#279] getAvailableTimeIntervals returns wrong time interval

Migrated from Redmine #279 | Author: Gennadiy Fayrushin
Status: Closed | Priority: Normal | Created: 2018-11-06


getAvailableTimeIntervals for some reason returns 10 minutes slot on this Thursday

"2018-11-08": {
        "6": [
            {
                "from": "15:00:00",
                "to": "15:10:00"
            }
        ]
    },

But there is no such interval in the Provider’s schedule and service length used for getAvailableTimeIntervals has 1h20m length that is much longer then 10 minutes from the repsonse.

Our login: mydrivingacademy

 method: getAvailableTimeIntervals
 params: ["2018-11-01", "2018-11-30", 40, 6]

Redmine Admin wrote:

This function does not take in account service duration (but do take in account service and provider schedule, breaktimes, etc.).
It is possible to book smaller slot (decrease duration) by admin API. That is why it returns all slots, even shorter than service duration.