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