Update erpnext/hr/doctype/shift_assignment/shift_assignment.py

Co-authored-by: Marica <maricadsouza221197@gmail.com>
This commit is contained in:
Anurag Mishra 2020-08-10 14:17:31 +05:30 committed by Anurag Mishra
parent 3aa1101d5e
commit b48110caf1

View File

@ -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: