G Gaia

Switch factory

CYTO-11 — Balakong Jaya CTSB CYTO-29 CTSB CYTOWELL-54 — Taming Jaya PIC/S CTWSB CYTOCNGZ-602 — Guangzhou CTCNGZ

Only factories you are granted appear here (Filament tenant menu).

Leo Lim

leo@navi.my · Owner / Admin

Profile settings Change password

Theme

Sign out
RetailSellR&DMakeBuyStockPlanItemsGMPAdminInsights

Planning & forecasting

items shown · sample of full item list
25 … 41
Item Existing stock
No rows of this type in the 14-row sample — the captured viewport listed packaging materials first (A–Z by variant config).
Showing 14 of 29 items in the captured viewport — Katana virtual-scrolls the full item list Horizon: weeks 16–24 of 26-week capture · projections recompute per location

Project Gaia — static mockup in Filament v3 table idiom. No backend. Sample data: Katana tenant snapshot 2026-04-12, location 11, Balakong Jaya.

Planning — field manifest

Build honesty note: this screen is NOT a standard Filament Resource table. It needs a custom Livewire page (custom Blade grid): pinned Item column, week columns generated dynamically from the horizon picker, per-cell stockout styling, and per-column "Show stockouts" controls are all outside the Table Builder API.
FieldFilament componentTypeSourceFK target
Itemcustom Blade cell (pinned left) — TextColumn-equivalent with url()stringstored: display '[variant config or SKU] product name / variant string'variants.id
Existing stockcustom cell, red when negativeqty + variant UoMderived: current on-hand at selected location (negative on-hand allowed, e.g. -3500 pcs)stock_movements
Present weekcustom cell + stockout markernumberderived: existing stock − forecast demand for remainder of current week
Week 17–24 (shown)custom cells, generated per horizon weeknumberderived: cell = previous week − weekly forecast demand + scheduled inbound supply (open MO/PO due that week)forecasts / mos / po_lines
Week 25–41— (dropped: horizon truncated to 8 week columns in mockup; captured to W41)numberderived: same projection formula
Stockout markerconditional cell class (red text + red bottom border)statederived: projected value < 0; amber border = zero-stock warning tier (all-zero row)
Show stockoutsper-week-column control (custom header slot)actionhighlights/jumps to stockout cells in that week column
Activate forecast demandToggle (Livewire property)boolswitches forward projection on/off — rows with no forecast hold flat
A / B / CToggleButtons filter — class assignments not captured in snapshotenum filterstored: variant ABC classification
CategorySelectFilter — per-row values not captured on this screenstring lookupstored: items.category_idcategories.id
LocationSelect (page-level scope)FKall quantities scoped to one location (11, Balakong Jaya)locations.id
Weekly / Monthly + week chipsToggleButtons + custom chip row — Monthly view not capturedenum + int[]granularity + horizon selection (chips 16–41 in capture); rebuckets same projection
All / Products / MaterialsTabs (item type filter)enum filterplanning list mixes finished products and materials (capsules, holograms, boxes)

Engine notes

  • Projection formula: week cell = previous week − weekly forecast demand + scheduled inbound supply. Rows decline linearly, confirming a flat forecast-demand rate per item (67.2/wk Gad Candy, 84/wk Gad Pouch, 460.6/wk STC30 New, 483.7/wk Double Root, 374.5/wk Taurus, 455/wk OLZZ, 69.3/wk Thor's Hammer, 119.7/wk AlphaMax, 3.5/wk Yes Global Sunset).
  • Present week = existing stock − forecast demand for the remainder of the current week (Gad Candy: 0 → −134.4, ~2× the steady 67.2 weekly rate — the present-week bucket can span more than one week's demand).
  • Scheduled supply is netted in: STC30 (New) jumps −5342.4 (W18) → +4197 (W19), an inbound of ~+10,000 units (open MO or PO due W19); same row has existing stock −3500 pcs, so negative on-hand is permitted.
  • Stockout detection is per-cell: the red underline begins exactly at the first negative week; every week column header offers "Show stockouts".
  • Forecast demand only applies while the toggle is on; items with no forecast hold flat (300 / 1300 / 20 / 5 rows never change). The mockup toggle demonstrates this: switching it off flattens all rows to existing stock.
  • Horizon = selected week chips (16–41, ~6 months); Weekly/Monthly rebuckets the same projection. Mockup truncates to Present week + Weeks 17–24.
  • Grid is per-location — every quantity scoped to the toolbar location (11, Balakong Jaya). No totals/footer row.
  • Filament build: custom Livewire page with its own Blade grid (pinned first column + horizontal scroll + dynamic week columns) — a standard Resource table cannot express this screen.