| # | Input | Loại | Đi vào bước |
|---|---|---|---|
| I-0 | G/D Slip đã duyệt trước đó (phiếu giao hàng gốc) | Chứng từ nguồn | From G/D Slip → Import Selected Lines |
| I-1 | Customer Master, Item Master, Warehouse, Bin Location | Master data | Mọi dòng hàng, header Request/Slip |
| I-2 | Yêu cầu trả hàng từ khách hàng | Yêu cầu bên ngoài | Create G/Return Request |
| Bước | Vai trò | Màn hình |
|---|---|---|
| Create G/Return Request | Warehouse Staff | Goods Return · Web |
| Create G/Return Slip (standalone) | Warehouse Staff | Goods Return · Web |
| From G/D Slip → Import Selected Lines | Warehouse Staff | Goods Return · Web |
| Chọn Item Code trực tiếp trong lưới | Warehouse Staff | Goods Return · Web |
| Mapping Barcode (Search & Map Barcode/QR) | Warehouse Staff | Goods Return · Web |
| Submit Request · Print Request | Warehouse Staff | Goods Return · Web |
| Scan G/Return Request · Scan Barcode hàng trả · Make Slip | Warehouse Staff | Goods Return · Mobile |
| Submit for Approval | Warehouse Staff | Goods Return · Web |
| Approve · Cancel | Warehouse Manager | Goods Return · Web |
Kỳ kho của phiếu đã chốt → chặn mọi action (Submit · Approve · Cancel · Delete) với thông báo This action cannot be completed because the affected inventory period is closed through [Close Date] | System (auto) | Goods Return |
| # | Output | Điều kiện sinh ra |
|---|---|---|
| O-1 | G/Return Request: SAVED → SUBMITTED → CLOSED | CLOSED tự động khi mọi dòng Remaining = 0 |
| O-2 | G/Return Slip = APPROVED | Manager bấm Approve khi Slip đang SUBMITTED |
| O-3 | Physical & Available Stock tăng tại Bin Location — chỉ dòng Disposition = Restock | Ngay khi Approve |
| O-4 | Received / Remaining trên dòng Request cập nhật | Slip có liên kết Request |
| O-5 | Ngoại lệ: Slip = CANCELLED, tồn kho (dòng Restock) giảm lại; Received giảm, Remaining tăng trên Request, Request đang CLOSED quay về SUBMITTED — hoặc bị chặn huỷ | Slip đang APPROVED; chặn nếu Available Stock < số lượng Restock của Slip, hoặc đã có action ở màn khác |