fix: salary slip working hours increment (#24784)

This commit is contained in:
Jannat Patel 2021-03-02 17:44:42 +05:30 committed by GitHub
parent 190106a8b8
commit b27d4f6095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1123,6 +1123,7 @@ class SalarySlip(TransactionBase):
#calculate total working hours, earnings based on hourly wages and totals
def calculate_total_for_salary_slip_based_on_timesheet(self):
if self.timesheets:
self.total_working_hours = 0
for timesheet in self.timesheets:
if timesheet.working_hours:
self.total_working_hours += timesheet.working_hours