Skip to content

Commit

Permalink
fix: add non-stock item filter for fg_item in PO
Browse files Browse the repository at this point in the history
(cherry picked from commit f95ed7d)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Sep 30, 2022
1 parent c2bed24 commit 11f9279
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/buying/doctype/purchase_order/purchase_order.js
Expand Up @@ -33,6 +33,7 @@ frappe.ui.form.on("Purchase Order", {
frm.set_query("fg_item", "items", function() {
return {
filters: {
'is_stock_item': 1,
'is_sub_contracted_item': 1,
'default_bom': ['!=', '']
}
Expand Down

0 comments on commit 11f9279

Please sign in to comment.