Update erpnext/hr/doctype/shift_assignment/shift_assignment.py
Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
parent
3aa1101d5e
commit
b48110caf1
@ -16,7 +16,7 @@ class ShiftAssignment(Document):
|
||||
self.validate_overlapping_dates()
|
||||
|
||||
if self.end_date and self.end_date <= self.start_date:
|
||||
frappe.throw(_("End Date must not be greater than Start Date"))
|
||||
frappe.throw(_("End Date must not be lesser than Start Date"))
|
||||
|
||||
def validate_overlapping_dates(self):
|
||||
if not self.name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user