feat: registration information in class student
This commit is contained in:
@@ -7,30 +7,63 @@
|
|||||||
"editable_grid": 1,
|
"editable_grid": 1,
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
"field_order": [
|
"field_order": [
|
||||||
"class_student",
|
"student",
|
||||||
"student"
|
"student_name",
|
||||||
|
"username",
|
||||||
|
"column_break_zvlp",
|
||||||
|
"address",
|
||||||
|
"amount",
|
||||||
|
"currency"
|
||||||
],
|
],
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"fieldname": "student",
|
"fieldname": "student",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"reqd": 1,
|
||||||
"label": "Student",
|
"label": "Student",
|
||||||
"options": "User"
|
"options": "User"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "class_student",
|
"fetch_from": "student.full_name",
|
||||||
"fieldtype": "Link",
|
"fieldname": "student_name",
|
||||||
|
"fieldtype": "Data",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Class Student",
|
"label": "Student Name",
|
||||||
"options": "Class Student Registration",
|
"read_only": 1
|
||||||
"reqd": 1
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "student.username",
|
||||||
|
"fieldname": "username",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Username",
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_zvlp",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "address",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Address",
|
||||||
|
"options": "Address"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "amount",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"label": "Amount"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "currency",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Currency",
|
||||||
|
"options": "Currency"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-08-18 16:56:34.435008",
|
"modified": "2023-08-18 19:19:34.701473",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "Class Student",
|
"name": "Class Student",
|
||||||
|
|||||||
@@ -3,10 +3,10 @@
|
|||||||
|
|
||||||
frappe.ui.form.on("LMS Class", {
|
frappe.ui.form.on("LMS Class", {
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
frm.set_query("class_student", "students", function (doc) {
|
frm.set_query("student", "students", function (doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
class_name: doc.name,
|
ignore_user_type: 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user