• Resolved Alex

    (@alexandronalin)


    Dears,
    I’m facing a problem when I set closure days for employees.
    (sorry for reference, but I have different language)
    From Reservations list screen, at the top, clicking on Blocked, I can reserve a closure day for one or more employees at time.
    As I set a day, I can see it on their calendar (using ?id_employee=XX) as partial available (yellow color, even if I set all day closure) and this is weird because I expect red color. (first issue)
    Furthermore I notice that calendar set automatically itself as green the day after and I can make a regular reservation (actually I don’t know if it switch to green minutes or hours or a day later). (second issue)

    I have all last wordpress and plugin versions

    Any advice?
    Many thanks
    Alex

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Alex

    (@alexandronalin)

    Same behavior if I create a specific page with shortcode instead of using /?id_service=XX&id_employee=YY

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi Alex,

    the real purpose of the “block” feature was not to close entire days, even if it allows you to do that. New closures should be created to turn off certain intervals of time.

    If you need to close a whole day, you should create a new working time for the employee and mark it as closed.

    If you are wondering why the day of the calendar is orange and not red, the answer is given by the algorithm used to determine the availability of the day. In order to speed up the calculation process, the system simply cumulates the total duration of the booked appointments for that day and compare it with the available working times of the employee. The red status is fetched only in case the total duration of the appointments is exactly equals to the time span of the working day.

    A closures of 24 hours, compared to a working time that goes, in example, from 9am to 17pm, doesn’t generate the same result, as the first one lasts 1440 minutes and the second one 480 minutes.

    The cell will become red only if you create a closure exactly equals to the working day of the employee.

    Of course, we will consider to improve this calculation in the future versions of the program.

    Sorry but I don’t get the second issue. The day after a closure will be always available for bookings. This because a closure for a day never affects the next one.

    Thread Starter Alex

    (@alexandronalin)

    Many thanks, that’s clear.
    I confirm that a blocked time=working time –> shows a red day.

    About second point I didn’t explain it well (I read my post and it’s not clear).
    I set a blocked time as said before and I obtained a red day, but after 15min it comes back green on calendar.
    It seems there is a cron or a reset timer.

    Hope this is useful to debug.

    Thanks
    Alex

    Plugin Author e4jvikwp

    (@e4jvikwp)

    Hi Alex,

    first of all, thanks for reporting the issue. We have just released the 1.2.9 version to solve this bug. All that you have to do is to proceed with the update.

    If you are interested in knowing what was happening here, the problem was related to the status assigned to the closures after saving them. The closures are in effect appointments with particular characteristics. Said this, due to a recent update, the status of a closure was wrongly reverted to PENDING. As you already know, there’s a setting named “Keep App. Locked for” that auto-set to REMOVED all the PENDING appointments (and closures) that were not confirmed within the established range of time. Therefore, this is what is happening to your website.

    Thread Starter Alex

    (@alexandronalin)

    I tested new version and it works.
    Many thanks for your great support
    *****

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Employees closure days’ is closed to new replies.