--- alias: user-guide-change-submaterials-production-order description: "This documentation details changing sub-material production orders within a material’s workflow" --- # Change Sub-Materials Production Order :lock: Material.**ChangeProductionOrder** ## Overview This operation is used to change the **Production Order** for the Sub-Materials of a **Material**. ## Setup No special setup is required other than to meet the preconditions of the transaction. ## Preconditions * The **Material** is active and has Sub-Materials. * All Sub-Material for which the **Production Orders** will be changed: * Must be active. * Must have the *Is Delivered* property set to false. * Both the new and old **Production Orders** must be active and in one of the following states *Created*, *Released*, *In Progress* or *Completed*. Production Order must not be Restricted * If the new or the old *Production Order* have an *Owner Role* defined, the user must belong to those roles. ## Sequence of Steps 1. For each Sub-Material, either assign it to *None* to remove it from the current **Production Order** or to a new **Production Order**. The pending changes can be seen in the Sub-Materials grid on the left. 2. Press **Change** to complete the transaction. !!! info Press **Reset** to revert all changes. !!! info Press **Apply to all Materials** to copy the change to all the Sub-Materials. ![Change Sub-Materials Production Order][ChangeSubMaterialsProductionOrder] !!! info This Wizard provides the additional options: * Apply **Production Order** priority to **Materials** - whether to set the Material priority with the Production Order priority. * Apply **Production Order** planned end date to **Materials** - whether to set the **Material** due date with the **Production Order** due date. * Apply **Production Order** planned end date to **Materials** - whether to set the **Material** due date with the **Production Order** due date. * Account to old **Production Order** - whether the **Material** should still account for the old **Production Order**. * Account to new **Production Order** - whether the **Material** should account for the new **Production Order**. * Apply changes recursively to Sub-Materials - whether the changes apply recursively to all Sub-Materials. * Remove from old **Production Order** - whether the **Material** will be removed from the old **Production Order**. !!! info It is possible to define the default value for checkbox *Apply change recursively for all Sub-Materials* by editing the entry Context=ProductionOrder.AssignMaterials, Element=ApplyToAllSubMaterials as context in the Generic Table *GUIElementDefaultValue*. !!! info It is possible to define the default value for checkbox *Remove from old Production Order* by editing the entry Context=ProductionOrder.AssignMaterials , Element=RemoveFromOldProductionOrder as context in the Generic Table *GUIElementDefaultValue*. [ChangeSubMaterialsProductionOrder]: images/Change_SubMaterials_Production_Order_Step1.png