mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
* guardian_name issue fix * guardian table issue resolved * resolved fetching issue + unnecessary code removed
This commit is contained in:
@@ -3,6 +3,11 @@
|
|||||||
|
|
||||||
frappe.ui.form.on('Student', {
|
frappe.ui.form.on('Student', {
|
||||||
setup: function(frm) {
|
setup: function(frm) {
|
||||||
|
frm.add_fetch("guardian", "guardian_name", "guardian_name");
|
||||||
|
frm.add_fetch("student", "title", "full_name");
|
||||||
|
frm.add_fetch("student", "gender", "gender");
|
||||||
|
frm.add_fetch("student", "date_of_birth", "date_of_birth");
|
||||||
|
|
||||||
frm.set_query("student", "siblings", function(doc, cdt, cdn) {
|
frm.set_query("student", "siblings", function(doc, cdt, cdn) {
|
||||||
return {
|
return {
|
||||||
"filters": {
|
"filters": {
|
||||||
@@ -11,18 +16,4 @@ frappe.ui.form.on('Student', {
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
frappe.ui.form.on("Student Guardian", {
|
|
||||||
guardian: function(frm) {
|
|
||||||
frm.add_fetch("guardian", "guardian_name", "guardian_name");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
frappe.ui.form.on('Student Sibling', {
|
|
||||||
student: function(frm) {
|
|
||||||
frm.add_fetch("student", "title", "full_name");
|
|
||||||
frm.add_fetch("student", "gender", "gender");
|
|
||||||
frm.add_fetch("student", "date_of_birth", "date_of_birth");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
@@ -39,15 +39,12 @@ frappe.ui.form.on("Student Applicant", {
|
|||||||
method: "erpnext.schools.api.enroll_student",
|
method: "erpnext.schools.api.enroll_student",
|
||||||
frm: frm
|
frm: frm
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
});
|
|
||||||
|
|
||||||
|
setup: function(frm) {
|
||||||
frappe.ui.form.on('Student Sibling', {
|
frm.add_fetch("guardian", "guardian_name", "guardian_name");
|
||||||
student: function(frm) {
|
|
||||||
frm.add_fetch("student", "title", "full_name");
|
frm.add_fetch("student", "title", "full_name");
|
||||||
frm.add_fetch("student", "gender", "gender");
|
frm.add_fetch("student", "gender", "gender");
|
||||||
frm.add_fetch("student", "date_of_birth", "date_of_birth");
|
frm.add_fetch("student", "date_of_birth", "date_of_birth");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -881,7 +881,7 @@
|
|||||||
"in_standard_filter": 0,
|
"in_standard_filter": 0,
|
||||||
"label": "Guardians",
|
"label": "Guardians",
|
||||||
"length": 0,
|
"length": 0,
|
||||||
"no_copy": 1,
|
"no_copy": 0,
|
||||||
"options": "Student Guardian",
|
"options": "Student Guardian",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"precision": "",
|
"precision": "",
|
||||||
@@ -1058,7 +1058,7 @@
|
|||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"menu_index": 0,
|
"menu_index": 0,
|
||||||
"modified": "2017-06-30 08:21:50.917086",
|
"modified": "2017-08-23 06:12:36.996978",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Schools",
|
"module": "Schools",
|
||||||
"name": "Student Applicant",
|
"name": "Student Applicant",
|
||||||
|
|||||||
Reference in New Issue
Block a user