Process orders
A process order tracks the manufacture of a product in a real quantity: laboratory test, sample or industrial trial. It starts from the product composition, computes the material requirements and checks them against the available stock.
A process order lets you:
- specify the quantity to manufacture and rescale the composition accordingly;
- include losses and yield in the material requirements;
- check stock availability and choose the batches used;
- consume the stock of a raw material, of a semi-finished product or of the components of a generic raw material;
- restrict the proposed stock to the plant or laboratory of manufacture;
- decrease the stock when the order is validated;
- print a production sheet.
Prerequisites
The process order relies on two lists:
- the "Stocks" list, on the products whose stock you manage (raw materials, semi-finished products);
- the "Allocation" list, on the process order.
The standard process order template contains the "Composition", "Allocation" and "Activity" lists. If the "Stocks" list does not appear on your products, add it to their entity template.
Declare the stock
Fill in the stock of each product in its "Stocks" list. Each line is one batch.

A stock line has the following fields:
- "Batch id": identifier of the batch;
- "Quantity" and "Unit": available quantity of the batch;
- "State": "To validate", "Valid" or "Refused";
- "Product Use by date": use-by date of the batch;
- "Suppliers": suppliers of the batch;
- "Plants" and "Laboratories": where the batch is stored.
A batch is proposed for allocation only if it meets all these conditions:
- its quantity is greater than zero;
- its state is not "Refused";
- its use-by date is not past;
- its plants and laboratories match those of the process order (see Stock by plant or laboratory).
Stock lines are not copied when you copy a product. They are kept when you create a new version.
Create a process order
The process order is an entity available in the creation menu.

To create a process order:
- In the creation menu, choose "Process order".
- Fill in the batch identification: name, "Batch id", "Order id".
- In the "Product concerned" field, search for the finished product or semi-finished product to manufacture. Archived or refused products are not proposed.
- Enter the "Quantity" and "Unit" of the production. Both fields are mandatory.
- Fill in the "Plants" or "Laboratories" of manufacture to consume only their stock.
- If needed, complete "Batch start", "Batch duration (h)", "Product Use by date" and "Batch comment".
- Save.

When you save, beCPG copies the product composition into the "Composition" list of the order and rescales it to the quantity to manufacture.

Adjust the order composition
The order composition is copied only once, at creation. You can then edit it without changing the product: quantities, losses or stock type.
beCPG computes the scale factor from the order unit:
- in kg or L, the order quantity divided by the net weight of the product;
- in pieces (P), the order quantity;
- in %, the order quantity divided by 100.
Stock type
The "Stock type" column of the composition sets which stock each line consumes:
- "On product": the line consumes the stock of the product itself. This is the default value of the copied lines.
- "On components": beCPG explodes the line into its components, on all levels, and consumes the stock of each raw material.
- "Omit": the line is left out of the allocation and consumes no stock.
Intermediate stock of a semi-finished product
A semi-finished product that is already manufactured and stored is consumed like a raw material. Keep its line on "On product": the allocation uses the stock of the semi-finished product, not the stock of its raw materials.
To consume the raw materials of the semi-finished product instead, set its line to "On components".
A local semi-finished product has no stock of its own. Its components are already detailed in the order composition, and their stock is consumed.
Losses and yield
The material requirements include losses. For each line, beCPG combines:
- the loss of the manufactured product;
- the loss of the composition line or, if empty, the loss of the component.
The allocated quantity is the line quantity multiplied by (1 + loss / 100). Raw material quantities are also divided by the product yield, when it is filled in.
Allocate the stock
The "Allocation" list of the process order shows the requirement per product and its availability in stock. beCPG recalculates it each time the order is formulated.

Each allocation line shows the following information:
- "Product concerned": product to consume. A product used several times in the composition has a single line with the sum of the requirements.
- "Quantity": computed requirement, losses included. beCPG displays small quantities in g, mL or mg.
- "State":
- "Simulation": the available stock covers the requirement;
- "Refused": the available stock does not cover the requirement. beCPG also reports insufficient stock in the requirements of the order;
- "Valid": the stock has been decreased.
- "Batch": stock batches to use.
To choose the batches, edit the allocation line and fill in the "Batch" field. It is the only editable field. beCPG proposes the available batches, sorted by ascending use-by date, and you can search them by batch id.
When batches are selected, the availability check counts only their quantity. Without a selection, it counts all available batches.
Grouping through a generic raw material
A generic raw material groups several actual raw materials, for example the same sugar bought from several suppliers or delivered to several plants. The stock is declared on the actual raw materials, not on the generic one.
When the composition uses a generic raw material that has a composition, beCPG collects the stock of its components, on all levels. You can then allocate the batches of the actual raw materials directly from the process order.
Components set to "Omit" and components whose plants do not match the order are excluded.
Stock by plant or laboratory
The "Plants" and "Laboratories" fields of the order restrict the stock that is proposed and consumed. beCPG keeps a batch only if:
- its plants match those of the order;
- its laboratories match those of the order.
An empty field does not filter. An order without a plant accepts batches from every plant, and a batch without a plant is accepted by every order. The same rule applies to laboratories.
The plant filter also applies to the components of a generic raw material.
Validate the order and decrease the stock
To execute the process order:
- Check that no allocation line is in the "Refused" state.
- Click "Edit properties" on the order.
- Set the "State" of the order to "Valid".
- Save.
beCPG then decreases the stock of each allocation line and sets it to "Valid". It consumes the batches with the nearest use-by date first, then carries the remainder over to the next batches. The batches consumed are recorded in the "Batch" field.
If an allocation line is in the "Refused" state, no stock is decreased. The order stays in the "Valid" state: correct the stock or the composition, then formulate the order again.
A line that is already valid is not decreased a second time.
To cancel the execution, set the "State" of the order back to "Simulation". beCPG adds the consumed quantity back to the first batch of each allocation line.
Report
The "Report" tab of the process order shows a production sheet specific to the order. It lists the composition in the order of manufacture.
