mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +00:00
fix: mapping of dispatch address when creating PO from SO (#47552)
* fix: mapping of dispatch address when creating PO from SO
* fix: add to default supplier function as well
(cherry picked from commit 82161e9cb5)
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -1328,6 +1328,7 @@ def make_purchase_order_for_default_supplier(source_name, selected_items=None, t
|
|||||||
{
|
{
|
||||||
"Sales Order": {
|
"Sales Order": {
|
||||||
"doctype": "Purchase Order",
|
"doctype": "Purchase Order",
|
||||||
|
"field_map": {"dispatch_address_name": "dispatch_address"},
|
||||||
"field_no_map": [
|
"field_no_map": [
|
||||||
"address_display",
|
"address_display",
|
||||||
"contact_display",
|
"contact_display",
|
||||||
@@ -1447,6 +1448,7 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
|||||||
{
|
{
|
||||||
"Sales Order": {
|
"Sales Order": {
|
||||||
"doctype": "Purchase Order",
|
"doctype": "Purchase Order",
|
||||||
|
"field_map": {"dispatch_address_name": "dispatch_address"},
|
||||||
"field_no_map": [
|
"field_no_map": [
|
||||||
"address_display",
|
"address_display",
|
||||||
"contact_display",
|
"contact_display",
|
||||||
|
|||||||
Reference in New Issue
Block a user