mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
[minor][fix] holiday list exception message fix
This commit is contained in:
@@ -238,7 +238,7 @@ def get_holiday_list_for_employee(employee, raise_exception=True):
|
|||||||
holiday_list = frappe.db.get_value("Company", company, "default_holiday_list")
|
holiday_list = frappe.db.get_value("Company", company, "default_holiday_list")
|
||||||
|
|
||||||
if not holiday_list and raise_exception:
|
if not holiday_list and raise_exception:
|
||||||
frappe.throw(_('Please set a default Holiday List for Employee {0} or Company {0}').format(employee, company))
|
frappe.throw(_('Please set a default Holiday List for Employee {0} or Company {1}').format(employee, company))
|
||||||
|
|
||||||
return holiday_list
|
return holiday_list
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user