mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
Adjust filters to limit contact options
This commit is contained in:
@ -52,6 +52,15 @@ function returnOrderFields(options={}) {
|
||||
},
|
||||
contact: {
|
||||
icon: 'fa-user',
|
||||
adjustFilters: function(filters) {
|
||||
let customer = getFormFieldValue('customer', {}, {modal: options.modal});
|
||||
|
||||
if (customer) {
|
||||
filters.company = customer;
|
||||
}
|
||||
|
||||
return filters;
|
||||
}
|
||||
},
|
||||
responsible: {
|
||||
icon: 'fa-user',
|
||||
|
Reference in New Issue
Block a user