mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
chore(BOM Explorer): display items in the same order as in the BOM (#41496)
(cherry picked from commit bd381cc0c6)
Co-authored-by: Samuel Danieli <23150094+scdanieli@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,8 @@ def get_exploded_items(bom, data, indent=0, qty=1):
|
|||||||
exploded_items = frappe.get_all(
|
exploded_items = frappe.get_all(
|
||||||
"BOM Item",
|
"BOM Item",
|
||||||
filters={"parent": bom},
|
filters={"parent": bom},
|
||||||
fields=["qty", "bom_no", "qty", "item_code", "item_name", "description", "uom"],
|
fields=["qty", "bom_no", "qty", "item_code", "item_name", "description", "uom", "idx"],
|
||||||
|
order_by="idx ASC",
|
||||||
)
|
)
|
||||||
|
|
||||||
for item in exploded_items:
|
for item in exploded_items:
|
||||||
|
|||||||
Reference in New Issue
Block a user