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

This commit is contained in:
rohitwaghchaure
2019-06-28 12:41:16 +05:30
committed by Nabin Hait
parent b059c6f630
commit c82253e479

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)