Hi,
I am unable to solve the following code. any help is appreciated.
Conditions to impement.
if qty is btn 2 & 4 break time shud b .10
if qty is > 4 & < 8 breaktime shud b .25
if qty is >8 break time shud b .60
employe day qty brktime satqty
1 jan1 4.5 .25 4.25
1 jan1 5.5 .25 5.25
employe day qty brktime satqty
2 jan1 1.9 0 1.9
2 jan1 1.9 0 1.9
The above situation where I have issues. I haveto calculate brktime based on total hrs
for that particular employee for tat particular day by taking out that break time from total qty.
expected
employe day qty brktime satqty
1 jan1 4.5 00 4.5
1 jan1 5.5 .60 4.90
employe day qty brktime satqty
2 jan1 1.9 0 1.9
2 jan1 1.9 .10 1.8
So whenever I have multiple records & the total qty is >8 I have to mak the breaktime as .60
same if I have mutlipl records, such as 1.9 & 1.9 the break time shud show as .10 & total
shud b 1.9+1.9-.10.
Any help is appreciated.