mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
Set Student Name in Program Enrollment
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user