fix: double exception in payroll (#24078)
This commit is contained in:
parent
01eca12fa7
commit
749d36a4dd
@ -289,7 +289,9 @@ class PayrollEntry(Document):
|
||||
jv_name = journal_entry.name
|
||||
self.update_salary_slip_status(jv_name = jv_name)
|
||||
except Exception as e:
|
||||
frappe.msgprint(e)
|
||||
if type(e) in (str, list, tuple):
|
||||
frappe.msgprint(e)
|
||||
raise
|
||||
|
||||
return jv_name
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user