fix: filter service unit by company
This commit is contained in:
parent
e30cc83591
commit
256b77b463
@ -43,7 +43,8 @@ frappe.ui.form.on('Clinical Procedure', {
|
||||
return {
|
||||
filters: {
|
||||
'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(){
|
||||
return {
|
||||
filters: {
|
||||
'is_group': 0,
|
||||
'allow_appointments': 1
|
||||
'is_group': false,
|
||||
'allow_appointments': true,
|
||||
'company': frm.doc.company
|
||||
}
|
||||
};
|
||||
});
|
||||
|
@ -9,6 +9,16 @@ frappe.ui.form.on('Therapy Session', {
|
||||
{fieldname: 'counts_completed', 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user