Chương 5 — Factory PO
Sau khi BOD duyệt Demand PO, phòng Supply tạo Factory PO — đơn đặt hàng gửi cho nhà máy sản xuất. Mỗi Demand PO có thể có nhiều Factory PO (chia hàng cho nhiều factory) hoặc gộp với Demand PO khác cùng factory. Trong manual này, đăng nhập với sc_manager@rechic.vn (Supply Manager).
Notification từ chương 4 — bell hiển thị
Khi Supply user mở hệ thống, panel chuông hiển thị thông báo "Demand PO đã được duyệt" với link Xem điều hướng thẳng đến PO. Đây là điểm khởi đầu của chương 5.
Xem sẽ mở PO detail.Danh sách Factory PO
Vào menu Supply Chain > Factory POs. Ban đầu danh sách trống — chưa có Factory PO nào. Sidebar của user Supply không có menu Master Data đầy đủ (không có Categories/Colors/Skus/Users — bị giới hạn theo RBAC).
PO/RE/FA202604/0000001, link tới Demand PO PO/RE/DE202604/0000001, factory Hangzhou Apparel Co., Ltd., status Draft. Cột Actions có Confirm PO, View, Edit.Tạo Factory PO mới
Bấm New factory po. Form gồm 2 section:
- PO Details: PO Number (Supply tự đặt theo format
PO/{BRAND}/FA{YYYYMM}/{seq}), Contract Number (số hợp đồng với factory), Demand PO (chọn từ list các Demand PO ở status Approved hoặc InProgress), Factory (chọn từ danh sách factory đã có). - Items: chọn từng Demand PO Item, nhập
quoted_cost(giá báo của factory).Confirmed costsẽ điền sau khi factory xác nhận — đây là Gate 2 chặn việc Confirm PO nếu chưa có giá xác nhận.
Add to items để thêm từng Demand PO Item — mỗi item có Quoted cost + Confirmed cost (Confirmed required cho Gate 2).Save Draft
Sau khi điền form và bấm Create, hệ thống tạo Factory PO ở trạng thái Draft. Trang Edit cho phép Supply tiếp tục bổ sung Confirmed cost, contract details, milestone dates trước khi confirm.
Edit Factory Po sau khi save draft. Đầy đủ section: PO Details, Production Milestones (po_confirmed_date, eta_date, eta_changed), Warehouse Receipt, Items.Confirm PO — chuyển trạng thái sang Confirmed
Khi factory đã xác nhận giá và nhận đơn, Supply bấm Confirm PO. Action này:
- Đổi status Factory PO:
Draft → Confirmed - Set
po_confirmed_date= ngày hôm nay - Tự động set
eta_datedựa trên loại PO (Restock + 20 ngày hoặc New Arrival + 35 ngày kể từproduction_start_date) - Tự động chuyển Demand PO liên quan từ
Approved → InProgressnếu đây là Factory PO đầu tiên cho Demand PO đó (cơ chế trongFactoryPo::booted()event)
Confirmed, po_confirmed_date = 30/04/2026. Items hiển thị: #1 [012322BL] Chân Váy Lyna · 545 pcs · All, #2 [012330BK] AK-Áo Kiểu Cindy · 500 pcs · All với Quoted cost 161,100 / 116,100 VND.Demand PO tự động chuyển InProgress
Đây là điểm "magic" của hệ thống: Demand không cần thao tác gì — Supply Confirm là Demand PO tự đổi trạng thái.
PO/RE/DE202604/0000001 — status đã chuyển sang In Progress tự động. Demand không cần làm gì cả.