Update lms_batch.py
This commit is contained in:
@@ -34,7 +34,7 @@ class LMSBatch(Document):
|
|||||||
|
|
||||||
def validate_batch_end_date(self):
|
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")
|
frappe.throw(_("Batch end date cannot be before the batch start date"))
|
||||||
|
|
||||||
def validate_duplicate_students(self):
|
def validate_duplicate_students(self):
|
||||||
students = [row.student for row in self.students]
|
students = [row.student for row in self.students]
|
||||||
|
|||||||
Reference in New Issue
Block a user