mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
fix: filter service unit by company
This commit is contained in:
@@ -43,7 +43,8 @@ frappe.ui.form.on('Clinical Procedure', {
|
|||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
'is_group': false,
|
'is_group': false,
|
||||||
'allow_appointments': true
|
'allow_appointments': true,
|
||||||
|
'company': frm.doc.company
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ frappe.ui.form.on('Patient Appointment', {
|
|||||||
frm.set_query('service_unit', function(){
|
frm.set_query('service_unit', function(){
|
||||||
return {
|
return {
|
||||||
filters: {
|
filters: {
|
||||||
'is_group': 0,
|
'is_group': false,
|
||||||
'allow_appointments': 1
|
'allow_appointments': true,
|
||||||
|
'company': frm.doc.company
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,6 +9,16 @@ frappe.ui.form.on('Therapy Session', {
|
|||||||
{fieldname: 'counts_completed', columns: 1},
|
{fieldname: 'counts_completed', columns: 1},
|
||||||
{fieldname: 'assistance_level', columns: 1}
|
{fieldname: 'assistance_level', columns: 1}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
frm.set_query('service_unit', function() {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
'is_group': false,
|
||||||
|
'allow_appointments': true,
|
||||||
|
'company': frm.doc.company
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
refresh: function(frm) {
|
refresh: function(frm) {
|
||||||
|
|||||||
Reference in New Issue
Block a user