Set Student Name in Program Enrollment
This commit is contained in:
parent
8b3dd8fdf2
commit
377da58378
@ -11,6 +11,8 @@ from frappe.utils import comma_and
|
|||||||
class ProgramEnrollment(Document):
|
class ProgramEnrollment(Document):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.validate_duplication()
|
self.validate_duplication()
|
||||||
|
if not self.student_name:
|
||||||
|
self.student_name = frappe.db.get_value("Student", self.student, "title")
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
self.update_student_joining_date()
|
self.update_student_joining_date()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user