Modules:Auto BOM for Retail/Technical Documentation
Contents |
Introduction
This documents describes the project that offers support for the auto production of products checked as Bill of Materials and Auto Generate BOM before processing the Order.
Database
Auto Generate BOM field has been created on Product window.
Hooks
It has been implemented a preOrderLoaderHook to call the BOMProcess and a postOrderLoaderHook to set the orderId on the recently created production.
BOM Process
The create production process is recurrent: if a product is checked as Bill of Materials and Auto Generate BOM and its Bill of Materials products are also Bill of Materials and Auto Generate BOM, two productions are created.
The process consists of the creation of a production, the production plan based on the products of the order that are Bill of Materials and Auto Generate BOM and the production plan lines. Once they are created the transaction lines are created.
Finally the orderId is set on the recently created production.