Production bonus break time for ramadan
This commit is contained in:
parent
89f428bd2f
commit
d0c80f9276
|
@ -728,11 +728,11 @@ namespace HRM.DA
|
|||
if (ts.Minutes < 16 && ts.Hours < 5)
|
||||
wh = ts.Hours;
|
||||
else if (ts.Minutes < 16)
|
||||
wh = ts.Hours - oProductionBonusSetup.BreakHour;
|
||||
wh = ts.Hours - ((tAtt.InTime.Date >= new DateTime(2025, 3, 1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28)) ? 0.5 : oProductionBonusSetup.BreakHour);
|
||||
else if (ts.TotalHours < 5)
|
||||
wh = ts.TotalHours;
|
||||
else
|
||||
wh = ts.TotalHours - oProductionBonusSetup.BreakHour;
|
||||
wh = ts.TotalHours - ((tAtt.InTime.Date >= new DateTime(2025, 3, 1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28)) ? 0.5 : oProductionBonusSetup.BreakHour);
|
||||
|
||||
hour += wh < 0 ? 0 : wh;
|
||||
}
|
||||
|
@ -791,11 +791,11 @@ namespace HRM.DA
|
|||
if (ts.Minutes < 16 && ts.Hours < 5)
|
||||
wh = ts.Hours;
|
||||
else if (ts.Minutes < 16)
|
||||
wh = ts.Hours - oProductionBonusSetup.BreakHour;
|
||||
wh = ts.Hours - ((tAtt.InTime.Date>=new DateTime(2025,3,1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28))?0.5: oProductionBonusSetup.BreakHour);
|
||||
else if (ts.TotalHours < 5)
|
||||
wh = ts.TotalHours;
|
||||
else
|
||||
wh = ts.TotalHours - oProductionBonusSetup.BreakHour;
|
||||
wh = ts.TotalHours - ((tAtt.InTime.Date >= new DateTime(2025, 3, 1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28)) ? 0.5 : oProductionBonusSetup.BreakHour);
|
||||
|
||||
// hour += ts.Hours < 0 ? 0 : ts.Hours;
|
||||
hour += wh < 0 ? 0 : wh;
|
||||
|
|
|
@ -411,11 +411,11 @@ namespace HRM.Report
|
|||
if (ts.Minutes < 16 && ts.Hours < 5)
|
||||
wh = ts.Hours;
|
||||
else if (ts.Minutes < 16)
|
||||
wh = ts.Hours - design.BreakHour;
|
||||
wh = ts.Hours - ((tAtt.InTime.Date >= new DateTime(2025, 3, 1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28)) ? 0.5 : design.BreakHour);
|
||||
else if (ts.TotalHours < 5)
|
||||
wh = ts.TotalHours;
|
||||
else
|
||||
wh = ts.TotalHours - design.BreakHour;
|
||||
wh = ts.TotalHours - ((tAtt.InTime.Date >= new DateTime(2025, 3, 1) && tAtt.InTime.Date <= new DateTime(2025, 3, 28)) ? 0.5 : design.BreakHour);
|
||||
|
||||
// hour += ts.Hours < 0 ? 0 : ts.Hours;
|
||||
hour = wh < 0 ? 0 : wh;
|
||||
|
|
Loading…
Reference in New Issue
Block a user