Show net total in salary slip log in Process Payroll. Fixed #7986
This commit is contained in:
parent
c5204f56e2
commit
6923397ef6
@ -148,8 +148,10 @@ class ProcessPayroll(Document):
|
|||||||
ss_obj = frappe.get_doc("Salary Slip",ss[0])
|
ss_obj = frappe.get_doc("Salary Slip",ss[0])
|
||||||
ss_dict = {}
|
ss_dict = {}
|
||||||
ss_dict["Employee Name"] = ss_obj.employee_name
|
ss_dict["Employee Name"] = ss_obj.employee_name
|
||||||
ss_dict["Total Pay"] = fmt_money(ss_obj.rounded_total,currency = frappe.defaults.get_global_default("currency"))
|
ss_dict["Total Pay"] = fmt_money(ss_obj.net_pay,
|
||||||
|
currency = frappe.defaults.get_global_default("currency"))
|
||||||
ss_dict["Salary Slip"] = self.format_as_links(ss_obj.name)[0]
|
ss_dict["Salary Slip"] = self.format_as_links(ss_obj.name)[0]
|
||||||
|
|
||||||
if ss_obj.net_pay<0:
|
if ss_obj.net_pay<0:
|
||||||
not_submitted_ss.append(ss_dict)
|
not_submitted_ss.append(ss_dict)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user