mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 03:15:07 +00:00
fix: incorrect mapping of dispatch addr when creating PO from SO
This commit is contained in:
@@ -1641,7 +1641,6 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
||||
{
|
||||
"Sales Order": {
|
||||
"doctype": "Purchase Order",
|
||||
"field_map": {"dispatch_address_name": "dispatch_address"},
|
||||
"field_no_map": [
|
||||
"address_display",
|
||||
"contact_display",
|
||||
@@ -1650,6 +1649,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
||||
"contact_person",
|
||||
"taxes_and_charges",
|
||||
"shipping_address",
|
||||
"dispatch_address",
|
||||
],
|
||||
"validation": {"docstatus": ["=", 1]},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user