> ## 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.

# Production Orders

> Track manufacturing from materials to finished goods

# Production Orders

<Info>
  **Status:** Partially Shipped\
  **Module:** Production & Operations
</Info>

## Overview

The Production Orders module tracks manufacturing progress from material receipt through cutting, sewing, finishing, QC, and packing. Each production order links to a sales order, creating visibility from commercial to factory floor.

## User Stories

| ID   | Story                                                      | Priority | Status            |
| ---- | ---------------------------------------------------------- | -------- | ----------------- |
| PR-1 | Create production order linked to sales order              | P0       | ✅ Shipped         |
| PR-2 | View BOM for each production order                         | P0       | ✅ Shipped         |
| PR-3 | Update status: Cutting → Sewing → Finishing → QC → Packing | P0       | ✅ Shipped         |
| PR-4 | Track defects and QC results per order                     | P1       | 🟡 In Development |
| PR-5 | Assign orders to production lines/workers                  | P2       | 🟡 Backlog        |
| PR-6 | Production efficiency reports                              | P2       | 🟡 Backlog        |

## Status Workflow

```text theme={null}
Cutting -> Sewing -> Finishing -> QC -> Packing -> Ready for Shipment
```

## Screenshots

<Note>
  Screenshots to be added by Thai
</Note>

## API Reference

| Method | Path                             | Description                  |
| ------ | -------------------------------- | ---------------------------- |
| GET    | `/api/v1/production-orders`      | List all production orders   |
| POST   | `/api/v1/production-orders`      | Create new production order  |
| GET    | `/api/v1/production-orders/{id}` | Get production order details |
| PUT    | `/api/v1/production-orders/{id}` | Update production order      |

## Related Features

* [Sales Orders](/features/detail/sales-orders) - Commercial orders linked to production
* [Material Requests](/features/detail/material-requests) - Request materials for production
* [Purchase Orders](/features/detail/purchase-orders) - Procure required materials

## Release History

* **v1.0.0** - Initial release with status workflow and BOM view
