fix: Add is_stock_item filter for item in locations table

This commit is contained in:
Suraj Shetty 2019-08-30 10:01:49 +05:30
parent effe53d4ae
commit 5e84ce55ae

View File

@ -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');