mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
fix: add condition to check if item is delivered by supplier in make_purchase_order_for_default_supplier() (#45370)
This commit is contained in:
@@ -1044,7 +1044,8 @@ def make_purchase_order_for_default_supplier(source_name, selected_items=None, t
|
|||||||
"postprocess": update_item,
|
"postprocess": update_item,
|
||||||
"condition": lambda doc: doc.ordered_qty < doc.stock_qty
|
"condition": lambda doc: doc.ordered_qty < doc.stock_qty
|
||||||
and doc.supplier == supplier
|
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,
|
target_doc,
|
||||||
|
|||||||
Reference in New Issue
Block a user