1.0.5 • Published 6 years ago

available-time-slot v1.0.5

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Find available time slot

This package will help to find out available time slot for booking services on a particular date for requested duration of time.

TimeSlot will be available depending on the availability of Person/Workers/Resource in the organization

###Required Parameter:

1) startTimeHoursArray : Array of Object for Start time of Booked Slot and duration of Hours for which it is booked

2) requestedHours : Duration of Hours for which customer want to book the service

3) noOfWorkers : Total Number of Workers Present in the organization

###Assumptions

There are 48, 30 minutes slots in a day.(Hence Total Slots Available For Service = noOfWorkers * 48)

The beginning of next day should not be included.

##Example

####var availableTimeSlot = require('available-time-slot');

####var startTimeHoursArray =[

{ start_time: '2:00 PM', total_hours: '3' },

{ start_time: '4:00 PM', total_hours: '3' }

];

####var noOfWorkers = 2; ####var requestedHours = 3;

####var slot = availableTimeSlot.timeSlotModule(startTimeHoursArray,noOfWorkers,requestedHours)

####console.log(slot);

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago