Project system brief

Modular ERP system for garment manufacturing workflow, multi-warehouse inventory tracking, procurement of raw materials, and multi-channel sales (B2B wholesale & D2C retail) for PT Veloura Yogyakarta.

Product Context

Product Context

Modular ERP system for garment manufacturing workflow, multi-warehouse inventory tracking, procurement of raw materials, and multi-channel sales (B2B wholesale & D2C retail) for PT Veloura Yogyakarta.

System Problem & Scope

System Problem & Scope

Integrating the entire garment manufacturing cycle, multi-warehouse inventory ledger, raw material supply chain, and wholesale/retail sales orders into a single secure platform.

Engineering Constraints

Engineering Constraints

Preserving consistency in an append-only multi-warehouse inventory ledger, deterministic finite state machines for production work orders (SPK) and sales, and isolated security gates for public demo mode.

System Architecture Flow

System Architecture Flow

Modular architecture powered by Next.js App Router and PostgreSQL with atomic stored transactions, append-only inventory mutations, role-based access control (RBAC), and strict isolation between local development and public portfolio demo modes.

5 System Stages
Active Stage: 01
01DATABASE

Multi-Channel Sales FSM

Active Stage
02WORKER

BOM Explosion & SPK

03DATABASE

Append-Only Inventory Ledger

04QUEUE

Procurement & Receiving

05SERVICE

PostgreSQL RBAC & Audit Trail

STAGE 01

Multi-Channel Sales FSM

Captures B2B wholesale and D2C retail orders into deterministic state machines with credit checks and reserved stock allocations.

STAGE 02

BOM Explosion & SPK

Deconstructs garment style specs into fabric/cutting BOMs and issues production work orders (SPK) with strict workshop step tracking.

STAGE 03

Append-Only Inventory Ledger

Executes atomic double-entry inventory transactions across central and retail warehouses with zero in-place stock overwrites.

STAGE 04

Procurement & Receiving

Validates purchase orders against supplier deliveries with lot-level QC verification and automatic invoice reconciliation.

STAGE 05

PostgreSQL RBAC & Audit Trail

Guarantees row-level isolation, time-stamped operation audits (WIB), and isolated mock sandboxing for display modes.

Execution & Failure-Mode Explorer

How the architecture behaves under real faults

Primary stage: Append-Only Inventory Ledger

Goods receipts, workshop transfers, and B2B allocations append signed ledger entries inside PostgreSQL transactions.

Key Engineering Contributions

Key Engineering Contributions

Architected end-to-end modular ERP services, production cycle state machines, atomic multi-warehouse inventory transactions, multi-role RBAC security, and portfolio showcase isolation.

Reliability & Integrity Guarantees

Reliability & Integrity Guarantees

Reliability is enforced through database-level atomic transactions, idempotency locks against double mutations, strict Zod schema validation, and automated test coverage across critical business boundaries.