Skip to content

Commit e2183eb

Browse files
ervishnucsmergify[bot]
authored andcommitted
fix: allow non-stock items while updating items
(cherry picked from commit 07db594)
1 parent 37f740c commit e2183eb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

erpnext/public/js/utils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,11 @@ erpnext.utils.update_child_items = function (opts) {
646646
get_query: function () {
647647
let filters;
648648
if (frm.doc.doctype == "Sales Order") {
649-
filters = { is_sales_item: 1, is_stock_item: !frm.doc.is_subcontracted };
649+
if (frm.doc.is_subcontracted) {
650+
filters = { is_sales_item: 1, is_stock_item: 0 };
651+
} else {
652+
filters = { is_sales_item: 1 };
653+
}
650654
} else if (frm.doc.doctype == "Purchase Order") {
651655
if (frm.doc.is_subcontracted) {
652656
if (frm.doc.is_old_subcontracting_flow) {

0 commit comments

Comments
 (0)