Fixed net_pay calculation issue
diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.py b/erpnext/hr/doctype/salary_slip/salary_slip.py
index 3ee98e6..901ede1 100644
--- a/erpnext/hr/doctype/salary_slip/salary_slip.py
+++ b/erpnext/hr/doctype/salary_slip/salary_slip.py
@@ -360,7 +360,7 @@
elif not d.amount:
d.amount = d.default_amount
if not d.do_not_include_in_total:
- self.set(total_field, self.get(total_field) + flt(d.amount))
+ self.set(total_field, self.get(total_field) + flt(d.amount, 2))
def calculate_net_pay(self):
if self.salary_structure:
@@ -473,4 +473,4 @@
if linked_ss:
for ss in linked_ss:
ss_doc = frappe.get_doc("Salary Slip", ss)
- frappe.db.set_value("Salary Slip", ss_doc.name, "journal_entry", "")
\ No newline at end of file
+ frappe.db.set_value("Salary Slip", ss_doc.name, "journal_entry", "")