fix: add condition to check if item is delivered by supplier in make_purchase_order_for_default_supplier() (#45370)

This commit is contained in:
Shanuka Hewage
2025-01-23 17:57:04 +05:30
committed by GitHub
parent 1622fc8728
commit 69464ab7ff

View File

@@ -1044,7 +1044,8 @@ def make_purchase_order_for_default_supplier(source_name, selected_items=None, t
"postprocess": update_item,
"condition": lambda doc: doc.ordered_qty < doc.stock_qty
and doc.supplier == supplier
and doc.item_code in items_to_map,
and doc.item_code in items_to_map
and doc.delivered_by_supplier == 1,
},
},
target_doc,