mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
* feat: partial delivery in dropshipping (#54787)
(cherry picked from commit db74360396)
# Conflicts:
# erpnext/buying/doctype/purchase_order/purchase_order.py
# erpnext/buying/doctype/purchase_order_item/purchase_order_item.json
* chore: resolve conflicts
* chore: resolve conflicts
---------
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -1628,7 +1628,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
||||
if default_payment_terms:
|
||||
target.payment_terms_template = default_payment_terms
|
||||
|
||||
if any(item.delivered_by_supplier == 1 for item in source.items):
|
||||
if any(item.delivered_by_supplier for item in target.items):
|
||||
if source.shipping_address_name:
|
||||
target.shipping_address = source.shipping_address_name
|
||||
target.shipping_address_display = source.shipping_address
|
||||
|
||||
Reference in New Issue
Block a user