commit | 5e84ce55ae954ef4e634129cc5cd9bbe61c13eda | [log] [tgz] |
---|---|---|
author | Suraj Shetty <surajshetty3416@gmail.com> | Fri Aug 30 10:01:49 2019 +0530 |
committer | Suraj Shetty <surajshetty3416@gmail.com> | Fri Aug 30 10:01:49 2019 +0530 |
tree | f54a38ba1984bc0e656fc8b00ed738753fc6acae | |
parent | effe53d4ae9a46d4a15f50d34f8aae863bf4dc5d [diff] |
fix: Add is_stock_item filter for item in locations table
diff --git a/erpnext/stock/doctype/pick_list/pick_list.js b/erpnext/stock/doctype/pick_list/pick_list.js index 4b8df09..badb3e7 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.js +++ b/erpnext/stock/doctype/pick_list/pick_list.js
@@ -30,6 +30,13 @@ } }; }); + frm.set_query('item_code', 'locations', () => { + return { + filters: { + is_stock_item: 1 + } + }; + }); }, get_item_locations: (frm) => { frm.call('set_item_locations');