Thus, in total we have 6 batches to be produce. This order has one style, named "Style 1". Style 1 has in total 4 different stages and inside each stage, there are different processes.
NOTES:
Each batch should go into the 4 different stages. Therefore, we would like to monitor the progress for each batch at each stage. Hence, we have a collection named StagedBatches where we can have a document for each batch and stage. Batch 1 should have 4 different stagedBatches. If we wanted to know the total StagedBatches for this order then it is 6 batches x 4 stages = 24 StagedBatches for this order.
There are 4 different status for each batch status:
Status Number | Name | Quick Description |
0 | New | When a new stagedbatch is created. All 4 stages have status of 0 when they are created. |
1 | In-feeding |
When a stagedbatch is created with no dependencies before it so it is assumed to start right away after assigning a section to the stage.
|
2 | In-progress | When at least one process is done inside the stagedbatch and there are still other missing processes. |
3 | Done | When all MANDATORY processes are done inside the stagedbatch . |
Batches status are built on staged batches statuses or quality station inspections or audit inspections.
There are 6 different status for each batch status:
Status Number | Name | Quick Description |
0 | New | When a new batch is created and no beats are performed on it. Moreover, if all stagedBatches inside the batch have status 0 or 1. |
1 | In-progress |
When at least one process is done inside the batch. Moreover, if at least one stagedBatch has a status of 2. |
2 | Done | When all MANDATORY processes are done inside the stagedbatch. Moreover, if all MANDATORY stagedbatches have status 3. |
3 | Inspected | When the batch is inspected through the final inspection quality and has finished all mandatory processes inside of it. |
4 | Rejected | If after AUDIT inspection, the batch is rejected due to defects found. |
5 | Approved | If after AUDIT inspection, the batch is approved. |
6 | Stopped/scrap | When a batch is marked as scrap in any station quality inspection. |
All Cutting orders statuses are built on batches statuses inside that cutting order.
There are 8 different status for each batch status:
Status Number | Name | Quick Description |
0 | New | When the cutting order is created but no batches created inside that cutting order. Thus, no batches documents inside that cutting order. |
1 | Bundled |
Batches created inside that order but no beats has recorded. All batches inside that order has status 0. |
2 | In-progress | When at least one batch inside that cutting order is still in progress (status 1) even if there were other batches with status more than 2. |
3 | Done | When all batches are done inside that cutting order. Thus, when all batches have status 2 or more. However, there have to be some batches with status 2. |
4 | Inspected | When all batches are inspected inside that cutting order. Thus, when all batches have status 3 or more. However, there have to be some batches with status 3. |
5 | Passed AQL | when batches are a mix of accepted or rejected after audit inspection. When batches statuses have a mix of 4 and 5. |
6 | Rejected | When all batches inside that cutting order are rejected from the audit inspected. Thus, when all batches status is 4 |
7 | Accepted | When all batches inside that cutting order are accepted from the audit inspected. Thus, when all batches status is 5 |
Orders are built on batches statuses inside that order.
There are 6 different status for each batch status:
Status Number | Name | Quick Description |
0 | New | When a new order is created and no beats are performed on it and no batches are created inside of it. |
1 | In-progress |
When at least one process is done inside the order. Moreover, if one batch has a status of 1 or at least one stagedBatch has a status of 2 inside that order. |
2 | Done | When all MANDATORY processes are done inside the order. Moreover, if all batches have a status of 2 or at all MANDATORY stagedBatch has a status of 3 inside that order. |
3 | Stopped |
Trigger:
|
4 | Bundled | When the batches are created inside the order and still no process has been done. |
5 | Inspected | When the order is fully inspected. Moreover, when all batches inside that order have status 3. |