mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
refactor(sales_person_wise_transaction_summary): Replace SQL with ORM (#55190)
This commit is contained in:
@@ -250,8 +250,5 @@ def get_items(filters):
|
|||||||
|
|
||||||
|
|
||||||
def get_item_details():
|
def get_item_details():
|
||||||
item_details = {}
|
items = frappe.get_all("Item", fields=["name", "item_group", "brand"])
|
||||||
for d in frappe.db.sql("""SELECT `name`, `item_group`, `brand` FROM `tabItem`""", as_dict=1):
|
return {d.name: d for d in items}
|
||||||
item_details.setdefault(d.name, d)
|
|
||||||
|
|
||||||
return item_details
|
|
||||||
|
|||||||
Reference in New Issue
Block a user