mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-05 19:42:45 +00:00
fix: throw correct exception
This commit is contained in:
@@ -296,7 +296,8 @@ class JobCard(Document):
|
||||
frappe.throw(
|
||||
_(
|
||||
"Employee {0} is currently working on another workstation. Please assign another employee."
|
||||
).format(args.get("employee"))
|
||||
).format(args.get("employee")),
|
||||
OverlapError,
|
||||
)
|
||||
|
||||
if not self.has_overlap(production_capacity, time_logs):
|
||||
|
||||
Reference in New Issue
Block a user