chore(BOM Explorer): display items in the same order as in the BOM (#41496)

This commit is contained in:
Samuel Danieli
2024-05-16 11:43:22 +02:00
committed by GitHub
parent 81a9521f04
commit bd381cc0c6

View File

@@ -21,7 +21,8 @@ def get_exploded_items(bom, data, indent=0, qty=1):
exploded_items = frappe.get_all(
"BOM Item",
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: