tamaki.mes.backup.compare.flattenProductionOrders
Description
Lifts each production order's nested structures into new top-level lists, adding the owning order's
name (as productionOrderName) to every entry:
propertyValues→ a newproductionOrderPropertyValueslist.billOfMaterials→ a newbillOfMaterialslist.
The entityLists dictionary is mutated in place. Does nothing if there are no production orders.
Syntax
tamaki.mes.backup.compare.flattenProductionOrders(entityLists)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
entityLists | Dict | False | A mapping of entity type to a list of entity dictionaries. |
Returns
This function does not return a value. It mutates entityLists in place, adding
productionOrderPropertyValues and billOfMaterials lists.
Code Examples
tamaki.mes.backup.compare.flattenProductionOrders(data)
print(data["billOfMaterials"])