Update additional_salary.py

This commit is contained in:
rohitwaghchaure 2020-09-08 10:18:18 +05:30 committed by GitHub
parent f20b6360de
commit 7d7fa79efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ class AdditionalSalary(Document):
additional_salaries = [salary.name for salary in additional_salaries] additional_salaries = [salary.name for salary in additional_salaries]
if len(additional_salaries): if additional_salaries and len(additional_salaries):
frappe.throw(_("Additional Salary: {0} already exist for Salary Component: {1} for period {2} and {3}").format( frappe.throw(_("Additional Salary: {0} already exist for Salary Component: {1} for period {2} and {3}").format(
bold(comma_and(additional_salaries)), bold(comma_and(additional_salaries)),
bold(self.salary_component), bold(self.salary_component),