Merge pull request #22265 from frappe/edu-academic-term-validation
fix: Adding filter in academic term
This commit is contained in:
commit
179365683f
@ -9,6 +9,14 @@ frappe.ui.form.on('Fee Structure', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onload: function(frm) {
|
onload: function(frm) {
|
||||||
|
frm.set_query("academic_term", function() {
|
||||||
|
return {
|
||||||
|
"filters": {
|
||||||
|
"academic_year": frm.doc.academic_year
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
frm.set_query("receivable_account", function(doc) {
|
frm.set_query("receivable_account", function(doc) {
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"actions": [],
|
||||||
"allow_import": 1,
|
"allow_import": 1,
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"autoname": "naming_series:",
|
"autoname": "naming_series:",
|
||||||
@ -11,8 +12,8 @@
|
|||||||
"program",
|
"program",
|
||||||
"student_category",
|
"student_category",
|
||||||
"column_break_2",
|
"column_break_2",
|
||||||
"academic_term",
|
|
||||||
"academic_year",
|
"academic_year",
|
||||||
|
"academic_term",
|
||||||
"section_break_4",
|
"section_break_4",
|
||||||
"components",
|
"components",
|
||||||
"section_break_6",
|
"section_break_6",
|
||||||
@ -157,7 +158,8 @@
|
|||||||
],
|
],
|
||||||
"icon": "fa fa-flag",
|
"icon": "fa fa-flag",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"modified": "2019-05-26 09:04:17.765758",
|
"links": [],
|
||||||
|
"modified": "2020-06-16 15:34:57.295010",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Education",
|
"module": "Education",
|
||||||
"name": "Fee Structure",
|
"name": "Fee Structure",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user