commit
00f4e06043
|
|
@ -224,7 +224,10 @@ class HrAttendanceReport(models.Model):
|
|||
get_total_amount = attendance.employee_id.contract_id.total_allowance
|
||||
if emp_calendar.is_full_day:
|
||||
working_hours_per_week = emp_calendar.working_hours * emp_calendar.working_days
|
||||
get_amount_per_hour = get_total_amount / working_hours_per_week
|
||||
if working_hours_per_week != 0:
|
||||
get_amount_per_hour = get_total_amount / working_hours_per_week
|
||||
else:
|
||||
get_amount_per_hour = 0
|
||||
else:
|
||||
get_amount_per_hour = get_total_amount / (
|
||||
total_hours_for_two_shifts * emp_calendar.working_days)
|
||||
|
|
|
|||
Loading…
Reference in New Issue