Set Student Name in Program Enrollment

This commit is contained in:
Neil Trini Lasrado 2016-10-18 18:11:52 +05:30
parent 8b3dd8fdf2
commit 377da58378

View File

@ -11,6 +11,8 @@ from frappe.utils import comma_and
class ProgramEnrollment(Document):
def validate(self):
self.validate_duplication()
if not self.student_name:
self.student_name = frappe.db.get_value("Student", self.student, "title")
def on_submit(self):
self.update_student_joining_date()