fix: not able to make salary slip based on timesheet (#18087)
This commit is contained in:
committed by
Nabin Hait
parent
b059c6f630
commit
c82253e479
@@ -281,7 +281,9 @@ class SalarySlip(TransactionBase):
|
|||||||
wages_row = {
|
wages_row = {
|
||||||
"salary_component": salary_component,
|
"salary_component": salary_component,
|
||||||
"abbr": frappe.db.get_value("Salary Component", salary_component, "salary_component_abbr"),
|
"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)
|
doc.append('earnings', wages_row)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user