fix: not able to make salary slip based on timesheet (#18088)
This commit is contained in:
parent
4000fb5bb8
commit
9dd7d3ebb3
@ -281,7 +281,9 @@ class SalarySlip(TransactionBase):
|
||||
wages_row = {
|
||||
"salary_component": salary_component,
|
||||
"abbr": frappe.db.get_value("Salary Component", salary_component, "salary_component_abbr"),
|
||||
"amount": self.hour_rate * self.total_working_hours
|
||||
"amount": self.hour_rate * self.total_working_hours,
|
||||
"default_amount": 0.0,
|
||||
"additional_amount": 0.0
|
||||
}
|
||||
doc.append('earnings', wages_row)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user