Update lms_batch.py

This commit is contained in:
Sai Phanindra
2023-12-27 11:29:51 +05:30
committed by GitHub
parent 7389d080b6
commit cbd5ae9969

View File

@@ -33,7 +33,7 @@ class LMSBatch(Document):
self.validate_evaluation_end_date()
def validate_batch_end_date(self):
if(self.end_date<self.start_date):
if(self.end_date < self.start_date):
frappe.throw("Batch end date cannot be before the batch start date")
def validate_duplicate_students(self):