mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +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):
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user