mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
* fix: use `name` for links not `item_code` (#30462)
(cherry picked from commit 76dce2eddc)
# Conflicts:
# erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py
* fix: conflicts
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -210,14 +210,12 @@ def get_customer_details():
|
|||||||
return customer_details
|
return customer_details
|
||||||
|
|
||||||
def get_item_details():
|
def get_item_details():
|
||||||
details = frappe.db.get_all("Item",
|
details = frappe.db.get_all("Item", fields=["name", "item_name", "item_group"])
|
||||||
fields=["item_code", "item_name", "item_group"])
|
|
||||||
item_details = {}
|
item_details = {}
|
||||||
for d in details:
|
for d in details:
|
||||||
item_details.setdefault(d.item_code, frappe._dict({
|
item_details.setdefault(
|
||||||
"item_name": d.item_name,
|
d.name, frappe._dict({"item_name": d.item_name, "item_group": d.item_group})
|
||||||
"item_group": d.item_group
|
)
|
||||||
}))
|
|
||||||
return item_details
|
return item_details
|
||||||
|
|
||||||
def get_sales_order_details(company_list, filters):
|
def get_sales_order_details(company_list, filters):
|
||||||
|
|||||||
Reference in New Issue
Block a user