Update lms_batch.py

This commit is contained in:
Sai Phanindra
2023-12-27 11:31:17 +05:30
committed by GitHub
parent cbd5ae9969
commit a6ae5e0675

View File

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