fix: not able to make salary slip based on timesheet (#18088)

This commit is contained in:
rohitwaghchaure 2019-06-28 12:40:52 +05:30 committed by Nabin Hait
parent 4000fb5bb8
commit 9dd7d3ebb3

View File

@ -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)