From 1e43c374528732391fd960129dc9c78bbe8104ba Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 13 Apr 2026 17:10:37 +0530 Subject: [PATCH] fix: not able to submit the PO --- erpnext/controllers/status_updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 3ce079a62a6..96ca67c28df 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -341,7 +341,7 @@ class StatusUpdater(Document): item_details.extend(self.fetch_items_with_pending_qty(args, "item_code", regular_items)) # Query production plan items with production_item field - if pp_items: + if pp_items and args.get("target_dt") in ["Production Plan Sub Assembly Item"]: item_details.extend(self.fetch_items_with_pending_qty(args, "production_item", pp_items)) item_lookup = {item.name: item for item in item_details}