mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
Merge pull request #33436 from frappe/mergify/bp/version-13-hotfix/pr-33434
fix(ux): `shipping_address` in PO (backport #33434)
This commit is contained in:
@@ -370,7 +370,7 @@
|
|||||||
{
|
{
|
||||||
"fieldname": "shipping_address",
|
"fieldname": "shipping_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Company Shipping Address",
|
"label": "Shipping Address",
|
||||||
"options": "Address",
|
"options": "Address",
|
||||||
"print_hide": 1
|
"print_hide": 1
|
||||||
},
|
},
|
||||||
@@ -1170,7 +1170,7 @@
|
|||||||
"idx": 105,
|
"idx": 105,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-11-17 12:34:36.033363",
|
"modified": "2022-12-25 18:08:59.074182",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"name": "Purchase Order",
|
"name": "Purchase Order",
|
||||||
|
|||||||
@@ -1097,8 +1097,6 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
|||||||
target.discount_amount = 0.0
|
target.discount_amount = 0.0
|
||||||
target.inter_company_order_reference = ""
|
target.inter_company_order_reference = ""
|
||||||
target.shipping_rule = ""
|
target.shipping_rule = ""
|
||||||
target.customer = ""
|
|
||||||
target.customer_name = ""
|
|
||||||
target.run_method("set_missing_values")
|
target.run_method("set_missing_values")
|
||||||
target.run_method("calculate_taxes_and_totals")
|
target.run_method("calculate_taxes_and_totals")
|
||||||
|
|
||||||
@@ -1125,9 +1123,11 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
|
|||||||
"contact_email",
|
"contact_email",
|
||||||
"contact_person",
|
"contact_person",
|
||||||
"taxes_and_charges",
|
"taxes_and_charges",
|
||||||
"shipping_address",
|
|
||||||
"terms",
|
"terms",
|
||||||
],
|
],
|
||||||
|
"field_map": [
|
||||||
|
["shipping_address_name", "shipping_address"],
|
||||||
|
],
|
||||||
"validation": {"docstatus": ["=", 1]},
|
"validation": {"docstatus": ["=", 1]},
|
||||||
},
|
},
|
||||||
"Sales Order Item": {
|
"Sales Order Item": {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import frappe
|
|||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.model.mapper import get_mapped_doc
|
from frappe.model.mapper import get_mapped_doc
|
||||||
from frappe.query_builder.functions import Sum
|
from frappe.query_builder.functions import Sum
|
||||||
from six import iteritems, itervalues, string_types
|
|
||||||
from frappe.utils import (
|
from frappe.utils import (
|
||||||
add_days,
|
add_days,
|
||||||
cint,
|
cint,
|
||||||
@@ -23,6 +22,7 @@ from frappe.utils import (
|
|||||||
nowdate,
|
nowdate,
|
||||||
today,
|
today,
|
||||||
)
|
)
|
||||||
|
from six import iteritems, itervalues, string_types
|
||||||
|
|
||||||
import erpnext
|
import erpnext
|
||||||
from erpnext.accounts.general_ledger import process_gl_map
|
from erpnext.accounts.general_ledger import process_gl_map
|
||||||
@@ -2625,4 +2625,3 @@ def get_incorrect_stock_entries() -> Dict:
|
|||||||
stock_entries.setdefault(row.name, row)
|
stock_entries.setdefault(row.name, row)
|
||||||
|
|
||||||
return stock_entries
|
return stock_entries
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user