Skip to content

Commit 709f216

Browse files
fix(salary-slip): amount calculation (frappe#18158)
1 parent 4dd48f4 commit 709f216

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/hr/doctype/salary_slip/salary_slip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def get_amount_based_on_payment_days(self, row, joining_date, relieving_date):
618618
elif not self.payment_days and not self.salary_slip_based_on_timesheet and cint(row.depends_on_payment_days):
619619
amount, additional_amount = 0, 0
620620
elif not row.amount:
621-
amount = cint(row.default_amount) + cint(row.additional_amount)
621+
amount = flt(row.default_amount) + flt(row.additional_amount)
622622

623623
# apply rounding
624624
if frappe.get_cached_value("Salary Component", row.salary_component, "round_to_the_nearest_integer"):

0 commit comments

Comments
 (0)