mrp_item_view
Check whether a finished good can be built by reviewing its complete indented bill of materials, stock availability, what to make or buy, and if all purchased parts are available.
Instructions
The total view of one finished good, read-only: everything needed to build a quantity of it, down every level of its bill of materials, against what is available (on hand + incoming − on order). Stock of a sub-assembly covers its branch before anything is exploded further, and a part used in two branches is only counted once. Returns an indented tree, what to make, what to buy, and canBuildWithoutBuying: true when every purchased part is available, even if sub-assemblies still have to be made from them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | Yes | Required. How many to build. | |
| item | Yes | Required. Product ID of the finished good. | |
| company | No | Company, by ID or name. May be omitted only when one company is available. | |
| alsoMade | No | Product IDs to treat as manufactured although they have never been on a batch. | |
| buyInstead | No | Made products to plan as purchased for this run (not exploded into components). | |
| availability | No | 'available' (default) = on hand + incoming − on order; 'onHand' = what is on the shelf now. |