# Curing Checking — curing-room stock by lot: lot age against Cure Std, quantity issued to Trimming, stock left

> Fine Chemical (FC) · MES module · v0.6 · 09/10/2026 · Standard flow — for implementation, testing and development
>
> Generated from the diagram by `sync.js` — do not edit by hand. The diagram is authoritative: report any mismatch with the diagram page.
>
> Diagram page: /en/mes/curing-checking

## How to read

- Every box on the diagram has a code `Bxx`, numbered in flow order (from the start event, following the arrows).
- "Goes to" lists every arrow leaving the box; text in square brackets is that arrow's condition label.
- "Optional branch" = a dashed arrow on the diagram: may be done or skipped.
- "Data" boxes in the Input lane are incoming data; in the Output lane they are results / end points of the flow.

## Process Flow (swimlane)

### Roles (lanes)

- Input
- Warehouse Staff
- System
- Output

### Steps

| Code | Role | Type | Content | Platform · Screen | Goes to |
| --- | --- | --- | --- | --- | --- |
| B01 | Input | Data | Confirmed curing lot (Curing Confirmation) |  | B06 |
| B02 | Input | Data | Master data: Cure Std · Curing Room | Master data | B07 |
| B03 | Input | Data | Stock Out slip Curing → WH-TRM-01 of the lot |  | B12 |
| B04 | Input | Data | Lot reopened in Curing Confirmation (approved) |  | B22 |
| B05 | System | Start | Start |  | B06 |
| B06 | System | Task | Show lot in LOT Inventory | System (auto) · Curing Checking | B07 |
| B07 | System | Task | Calculate Aged from In Date | System (auto) · Curing Checking | B08 |
| B08 | System | Decision | Aged ≥ Cure Std? |  | B09 [No]; B10 [Yes] |
| B09 | Output | Data | Lot UNDER CURING — can be planned for Trimming, not issued |  | (end) |
| B10 | System | Task | Show lot CURED – UNALLOCATED | System (auto) · Curing Checking | B11; B12 |
| B11 | Output | Data | Lot CURED – UNALLOCATED → Curring Room INV List |  | (end) |
| B12 | System | Task | Update Released · On-hand | System (auto) · Curing Checking | B13 |
| B13 | System | Decision | On-hand = 0? |  | B14 [No]; B15 [Yes] |
| B14 | Output | Data | Lot still On-hand — pick again in Trimming Planning |  | (end) |
| B15 | System | Task | Hide lot from LOT Inventory | System (auto) · Curing Checking | B16; B17 |
| B16 | Output | Data | Lot leaves the curing room |  | (end) |
| B17 | System | End | End |  |  |
| B18 | Warehouse Staff | Start | Report needed |  | B19 |
| B19 | Warehouse Staff | Task | Export the filtered grid to Excel | Web · Curing Checking | B20; B21 |
| B20 | Output | Data | File Excel LOT Inventory |  | (end) |
| B21 | Warehouse Staff | End | End |  |  |
| B22 | System | Task | Remove lot from LOT Inventory | System (auto) · Curing Checking | B23 |
| B23 | Output | Data | Lot withdrawn from curing room — awaiting re-confirmation |  | (end) |

### Step details (hover content on the diagram)

#### B06 · Show lot in LOT Inventory

- System · System (auto) · Curing Checking
- Comes from: B05, B01
- Goes to: B07 · Calculate Aged from In Date

> The system lists the lots confirmed at Curing Confirmation that still have stock in the Curing room.  
> Action: Curing Checking › "LOT Inventory" table: "LOT No." · "WO No." · "Item" · "Room" · "In Date" · "Cure Std" · "Aged" · "In Qty" · "Released" · "On-hand" · "Lot Status"; filters "Curing Room" · "WO No." · "Lot Status" (applied as soon as a value is picked).  
> System: "Room" is the room the Warehouse Staff selected in the "Curing room" field of Curing Confirmation when confirming the lot. Curing room stock is the process warehouse "WH-CUR-01 / Curing"; the stocktake is done in that warehouse in WMS.  
> System: the screen is view-only — no stocktake, it never changes the lot status; the only button is "Excel".  
> Result: count line "[WH-CUR-01 / Curing · <n> lots · <pairs> pairs on-hand]".  
> Test:  
> - Confirm 4 day-shift lots of 2026-08-11 at Curing Confirmation → those 4 lots appear here, Aged 0 d  
> - Filter "Curing Room" = CUR-ROOM-B → only CUR-ROOM-B lots remain; add "Lot Status" = Under Curing → only lots not yet cured remain  
> Source: Q-20261009-03 · Q-20261009-09 (items 1, 2) · prototype v0.87  

#### B07 · Calculate Aged from In Date

- System · System (auto) · Curing Checking
- Comes from: B02, B06
- Goes to: B08 · Aged ≥ Cure Std?

> The system computes the lot's age in the Curing room, in days.  
> System: "Aged" = today − "In Date"; "Cure Std" = the Standard curing days of master data (prototype: 2 d) — the same unit as Curing Confirmation ("Standard curing 2 days") and Trimming Planning.  
> Test:  
> - In Date 2026-08-09, today 2026-08-11 → Aged 2 d  
> Source: Q-20261009-03 (item 3) · Q-20260918-29 · prototype v0.85  

#### B08 · Aged ≥ Cure Std?

- System
- Comes from: B07
- Goes to [No]: B09 · Lot UNDER CURING — can be planned for Trimming, not issued
- Goes to [Yes]: B10 · Show lot CURED – UNALLOCATED

> Has the lot reached its standard curing days?  
> Yes: "Aged" ≥ "Cure Std" → "Lot Status" is Cured – Unallocated, the "Aged" column turns green.  
> No: "Lot Status" is Under Curing, the "Aged" column turns orange.  
> Test:  
> - Cure Std 2 d, Aged 1 d → No  
> - Cure Std 2 d, Aged 2 d → Yes  
> Source: Q-20261009-03 (item 1) · Q-20260918-29  

#### B10 · Show lot CURED – UNALLOCATED

- System · System (auto) · Curing Checking
- Comes from: B08
- Goes to: B11 · Lot CURED – UNALLOCATED → Curring Room INV List
- Goes to: B12 · Update Released · On-hand

> The system shows a lot that reached its curing days as common stock waiting for Trimming.  
> Result: no Customer PO is attached; Trimming Planning can pick the lot into a plan.  
> System: the move to Cured – Unallocated is set by Curing Confirmation; this screen only displays it. The lot has no "released to Trimming" status.  
> Source: Q-20260930-05 (item 3) · Q-20261009-03 (item 1)  

#### B12 · Update Released · On-hand

- System · System (auto) · Curing Checking
- Comes from: B10, B03
- Goes to: B13 · On-hand = 0?

> The system updates the quantity issued to the Trimming warehouse and the quantity still in the room.  
> System: "Released" = the total of the lot's APPROVED Curing Stock Out slips → WH-TRM-01; a slip CANCELLED (Trimming plan edited / cancelled) gives that quantity back. "On-hand" = "In Qty" − "Released".  
> Result: after a partial issue the lot still has On-hand; "Lot Status" does not change.  
> Test:  
> - In Qty 1,600, slip 510 APPROVED → Released 510, On-hand 1,090  
> - That plan cancelled → slip CANCELLED → Released 0, On-hand 1,600  
> Source: Q-20261006-02 (items 1, 2) · Q-20261009-03 · prototype v0.85  

#### B13 · On-hand = 0?

- System
- Comes from: B12
- Goes to [No]: B14 · Lot still On-hand — pick again in Trimming Planning
- Goes to [Yes]: B15 · Hide lot from LOT Inventory

> Is any stock of the lot left in the room?  
> Yes: "On-hand" = 0 → drop the lot from the table.  
> No: the lot still has On-hand and can be picked again in Trimming Planning.  
> Source: Q-20261009-03 (item 1) · prototype v0.85  

#### B15 · Hide lot from LOT Inventory

- System · System (auto) · Curing Checking
- Comes from: B13
- Goes to: B16 · Lot leaves the curing room
- Goes to: B17 · End

> The system drops a fully issued lot from the table.  
> Result: the lot leaves "LOT Inventory"; "Lot Status" stays Cured – Unallocated — there is no Released status.  
> Source: Q-20260930-05 (item 3) · Q-20261009-03 (item 1)  

#### B19 · Export the filtered grid to Excel

- Warehouse Staff · Web · Curing Checking
- Comes from: B18
- Goes to: B20 · File Excel LOT Inventory
- Goes to: B21 · End

> The Warehouse Staff exports the filtered grid to Excel.  
> Action: "Excel" button.  
> Result: a "LOT Inventory" Excel file with the current filters.  
> Source: prototype v0.85  

#### B22 · Remove lot from LOT Inventory

- System · System (auto) · Curing Checking
- Comes from: B04
- Goes to: B23 · Lot withdrawn from curing room — awaiting re-confirmation

> The system removes a lot reopened at Curing Confirmation from the stock list.  
> When: the Production Supervisor approved the Reopen and the lot is back to WAITING CONFIRMATION.  
> Result: the lot leaves the "LOT Inventory" table; when confirmed again it comes back as a new lot.  
> Open: re-entering as a new lot is a proposal, not yet confirmed.  
> Source: convention Q3  

## Status lifecycle

#### Lot Status shown on Curing Checking — transitions set by Curing Confirmation

`UNDER CURING` → `CURED – UNALLOCATED`

Transitions:

- `UNDER CURING` -- Aged ≥ Cure Std --> `CURED – UNALLOCATED`

## Input

| # | Input | Type | Used in step |
| --- | --- | --- | --- |
| I-1 | Confirmed curing lot (1 injection shift = 1 lot) from Curing Confirmation | Production result — MES | Show lot in LOT Inventory |
| I-2 | Cure Std (Standard curing days) · Curing Room | Master data | Calculate Aged from In Date |
| I-3 | Curing Stock Out slips → WH-TRM-01 of the lot (APPROVED / CANCELLED) | Stock slip — MES Trimming Planning / Curing Confirmation | Update Released · On-hand |
| I-5 | Lot reopened in Curing Confirmation (Production Supervisor approved) | Result — MES Curing Confirmation | Remove lot from LOT Inventory |

## Step ↔ screen

| Step | Role | Screen · UI button |
| --- | --- | --- |
| Show lot in LOT Inventory · Compute Aged from In Date · Show lot CURED – UNALLOCATED · Update Released · On-hand · Hide lot from LOT Inventory · Remove lot from LOT Inventory | System (auto) | Curing Checking · table `LOT Inventory`; filters `Curing Room`, `WO No.`, `Lot Status` |
| Export the filtered grid to Excel | Warehouse Staff | Curing Checking · `Excel` (the only button on the screen) |

## Output

| # | Output | Produced when |
| --- | --- | --- |
| O-1 | Lot `UNDER CURING` — can be planned for Trimming, not yet issued | Aged < Cure Std |
| O-2 | Lot `CURED – UNALLOCATED` → Curring Room INV List (source of Trimming Planning) | Aged ≥ Cure Std — transition set by Curing Confirmation |
| O-4 | Lot still On-hand — pick again in Trimming Planning | Partial issue, On-hand > 0 |
| O-5 | Lot leaves the curing room | On-hand = 0 (fully issued to the Trimming warehouse) |
| O-9 | Lot withdrawn from curing room — awaiting re-confirmation | Curing Confirmation reopens the lot (Supervisor approved) |
| O-8 | File Excel LOT Inventory | Excel pressed |

## Glossary

| Glossary | Meaning in this flow |
| --- | --- |
| `Cure Std` | Standard curing days (prototype: 2 d) |
| `Aged` | Today − In Date: the number of days the lot has been in the Curing room |
| `In Qty / Released / On-hand` | Quantity in · total of APPROVED Curing Stock Out slips → WH-TRM-01 · remaining = In Qty − Released |
| `WH-CUR-01 / Curing` | Process warehouse of the Curing room; stock checks and stocktakes are done in this warehouse in WMS |
| `Room` | Curing room (CUR-ROOM-A / B) the Warehouse Staff selects when confirming the lot at Curing Confirmation |
| `Lot Status` | UNDER CURING · CURED – UNALLOCATED (the prototype shows Under Curing / Cured – Unallocated) — the set of Curing Confirmation |
