mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fix: salary slip working hours increment (#24784)
This commit is contained in:
@@ -1123,6 +1123,7 @@ class SalarySlip(TransactionBase):
|
|||||||
#calculate total working hours, earnings based on hourly wages and totals
|
#calculate total working hours, earnings based on hourly wages and totals
|
||||||
def calculate_total_for_salary_slip_based_on_timesheet(self):
|
def calculate_total_for_salary_slip_based_on_timesheet(self):
|
||||||
if self.timesheets:
|
if self.timesheets:
|
||||||
|
self.total_working_hours = 0
|
||||||
for timesheet in self.timesheets:
|
for timesheet in self.timesheets:
|
||||||
if timesheet.working_hours:
|
if timesheet.working_hours:
|
||||||
self.total_working_hours += timesheet.working_hours
|
self.total_working_hours += timesheet.working_hours
|
||||||
|
|||||||
Reference in New Issue
Block a user