Salary Slip - remove check query limited to one (#14699)

This commit is contained in:
Ranjith Kurungadam 2018-06-27 17:29:40 +05:30 committed by Nabin Hait
parent f2f54e741b
commit 23e235395e

View File

@ -237,9 +237,6 @@ class SalarySlip(TransactionBase):
'end_date': self.end_date, 'joining_date': joining_date})
if st_name:
if len(st_name) > 1:
frappe.msgprint(_("Multiple active Salary Structures found for employee {0} for the given dates")
.format(self.employee), title=_('Warning'))
return st_name and st_name[0][0] or ''
else:
self.salary_structure = None