mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
show message if there's no submitted salary slip
This commit is contained in:
@@ -339,7 +339,12 @@ class ProcessPayroll(Document):
|
|||||||
"debit_in_account_currency": total_salary_amount.rounded_total
|
"debit_in_account_currency": total_salary_amount.rounded_total
|
||||||
})
|
})
|
||||||
journal_entry.set("accounts", account_amt_list)
|
journal_entry.set("accounts", account_amt_list)
|
||||||
return journal_entry.as_dict()
|
return journal_entry.as_dict()
|
||||||
|
else:
|
||||||
|
frappe.msgprint(
|
||||||
|
"There are no submitted Salary Slips to process.",
|
||||||
|
title="Error"
|
||||||
|
)
|
||||||
|
|
||||||
def update_salary_slip_status(self, jv_name = None):
|
def update_salary_slip_status(self, jv_name = None):
|
||||||
ss_list = self.get_sal_slip_list(ss_status=1)
|
ss_list = self.get_sal_slip_list(ss_status=1)
|
||||||
|
|||||||
Reference in New Issue
Block a user