Skip to content

Bug: scheduler.getAvailability returning incorrect values #14

@chintan12

Description

@chintan12

Input value :

{ "from": "2020-03-16", "to": "2020-03-23", "duration": 45, "interval": 45, "schedule": { "friday": { "from": "09:00", "to": "11:00", "unavailability": [] }, "sunday": { "from": "09:00", "to": "14:00", "unavailability": [ { "from": "10:00", "to": "11:00" }, { "from": "12:00", "to": "13:00" } ] } } }

Output :

{ '2020-03-20': [ { time: '09:00', available: true, reference: null }, { time: '09:45', available: true, reference: null }, { time: '10:30', available: false, reference: null } ], '2020-03-22': [ { time: '09:00', available: true, reference: null }, { time: '09:45', available: false, reference: null }, { time: '10:30', available: false, reference: null }, { time: '11:15', available: true, reference: null }, { time: '12:00', available: false, reference: null }, { time: '12:45', available: false, reference: null }, { time: '13:30', available: false, reference: null } ] }

For sunday time slot is display incorrect

There has been close office between 10 to 11, So next opening stating from 11 instead of 11:15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions