fix: salary slip amount rounding errors (#30250)

This commit is contained in:
Rucha Mahabal
2022-03-15 12:23:48 +05:30
committed by GitHub
parent db0e3d3fbe
commit 51aa55f3b0

View File

@@ -696,7 +696,7 @@ class SalarySlip(TransactionBase):
# apply rounding
if frappe.get_cached_value("Salary Component", row.salary_component, "round_to_the_nearest_integer"):
amount, additional_amount = rounded(amount), rounded(additional_amount)
amount, additional_amount = rounded(amount or 0), rounded(additional_amount or 0)
return amount, additional_amount