show message if there's no submitted salary slip

This commit is contained in:
tunde 2017-08-02 14:17:46 +01:00
parent c697526382
commit 85adbd7eae

View File

@ -340,6 +340,11 @@ class ProcessPayroll(Document):
})
journal_entry.set("accounts", account_amt_list)
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):
ss_list = self.get_sal_slip_list(ss_status=1)