Hi,
If the User passes date as 25/Feb/2015 06 AM and Shifts a 4 and Qty as 2000 (2000/4 = 500) then in my table i need to store the values as
StartDate EndDate Numbers
25/Feb/2015 06:00 25/Feb/2015 14:00 500
25/Feb/2015 14:00 25/Feb/2015 22:00 500
25/Feb/2015 22:00 26/Feb/2015 06:00 500
26/Feb/2015 06:00 26/Feb/2015 14:00 500
If the User passes date as 25/Feb/2015 11 AM and Shifts a 5 and Qty as 2000 then in my table i need to store the values as
StartDate EndDate Numbers
25/Feb/2015 11:00 25/Feb/2015 14:00 300
25/Feb/2015 14:00 25/Feb/2015 22:00 500
25/Feb/2015 22:00 26/Feb/2015 06:00 500
26/Feb/2015 06:00 26/Feb/2015 14:00 500
26/Feb/2015 14:00 26/Feb/2015 17:00 200
Any Suggestiongs