Skip to content

Commit 9d90fc4

Browse files
fix: not able to submit the PO (backport #54257) (#54261)
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
1 parent 2c292f4 commit 9d90fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/controllers/status_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def validate_qty(self):
341341
item_details.extend(self.fetch_items_with_pending_qty(args, "item_code", regular_items))
342342

343343
# Query production plan items with production_item field
344-
if pp_items:
344+
if pp_items and args.get("target_dt") in ["Production Plan Sub Assembly Item"]:
345345
item_details.extend(self.fetch_items_with_pending_qty(args, "production_item", pp_items))
346346

347347
item_lookup = {item.name: item for item in item_details}

0 commit comments

Comments
 (0)