> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vinmake.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MES Overview

> Manufacturing Execution System for the VinMake shop floor

# Manufacturing Execution System

The **MES** is where a garment order becomes physical product. It receives approved work from **PLM** (styles, BOMs, costing) and drives every step on the factory floor — cutting, sewing, quality control, finished-goods handling, and dispatch — while posting inventory movements and COGS into **Finindex** (the finance ledger).

MES covers four domains:

<CardGroup cols={2}>
  <Card title="Production Execution" icon="industry" href="/cutmake/mes/production-execution">
    Production orders and versions, cut plans, mobile floor execution, production lines, work centers, and workers.
  </Card>

  <Card title="Warehouse & Inventory" icon="warehouse" href="/cutmake/mes/warehouse-inventory">
    Logistics and shipments, stock lots and locations, outbound allocation, delivery notes, and reconciliation.
  </Card>

  <Card title="Quality Control" icon="clipboard-check" href="/cutmake/mes/quality-control">
    Fabric QC at intake and garment QC at production, with posting that drives stock disposition and GL.
  </Card>

  <Card title="Back to PLM" icon="ruler-combined" href="/cutmake/plm/overview">
    Styles, bills of materials, and costing — the upstream source of every production order.
  </Card>
</CardGroup>

## Shop-floor flow

A production order travels left-to-right through the factory. Cutting consumes fabric lots, sewing assembles cut bundles into garments, QC gates each handoff, and finished goods flow to the warehouse for outbound dispatch and delivery.

```mermaid theme={null}
flowchart LR
  PLM[PLM: Style + BOM] --> PO[Production Order]
  PO --> CP[Cut Plan]
  CP --> Cut[Cutting]
  Cut --> Sew[Sewing]
  Sew --> QC[Quality Control]
  QC -->|pass| FG[Finished Goods]
  QC -->|fail| Rework[Rework / Reject]
  Rework --> Sew
  FG --> OB[Warehouse Outbound]
  OB --> DN[Delivery Note]
  DN --> Ship[Delivery / Dispatch]
  FG -.inventory + COGS.-> Fin[Finindex GL]
```

<Info>
  Every posting action in MES (cut output, sewing output, QC post, inbound receipt, outbound dispatch) writes a stock ledger entry and a matching journal entry in [Finindex](/finindex/accounting/overview). MES is the system of record for *physical* movement; Finindex is the system of record for its *financial* effect.
</Info>

## Where to start

<Steps>
  <Step title="Set up the factory">
    Define work centers, workers, and production lines once. See [Production Execution](/cutmake/mes/production-execution).
  </Step>

  <Step title="Run a production order">
    Create the order from a PLM style, build a cut plan, and prepare mobile execution for the floor.
  </Step>

  <Step title="Move and inspect inventory">
    Receive fabric, run QC, issue lots to cutting, and dispatch finished goods. See [Warehouse & Inventory](/cutmake/mes/warehouse-inventory) and [Quality Control](/cutmake/mes/quality-control).
  </Step>
</Steps>

## Conventions

* **Base URL:** `https://vinmake-erp.onrender.com` — all endpoints are under the canonical `/api/v1` prefix.
* **Auth:** every request requires `Authorization: Bearer <access_token>`.
* See the **API Reference** tab for the full endpoint list across all MES tags.
