fix: Add is_stock_item filter for item in locations table
This commit is contained in:
parent
effe53d4ae
commit
5e84ce55ae
@ -30,6 +30,13 @@ frappe.ui.form.on('Pick List', {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
frm.set_query('item_code', 'locations', () => {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
is_stock_item: 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
get_item_locations: (frm) => {
|
get_item_locations: (frm) => {
|
||||||
frm.call('set_item_locations');
|
frm.call('set_item_locations');
|
||||||
|
Loading…
Reference in New Issue
Block a user