#doctypes#inventory
ขอเบิกสินค้า/วัตถุดิบ (trans_flag 122)
ใช้เมื่อไร
ใช้ขออนุมัติเบิกก่อนเบิกจริงด้วยใบ 56 อยู่ที่เมนู "ขอเบิกสินค้า/วัตถุดิบ" (RIO, transMenuMap.ts:967)
trans_flag/ตาราง
- trans_flag 122 เก็บใน หัวเอกสารสินค้า/ซื้อ/ขาย (ic_trans) + รายการสินค้าในเอกสาร (ic_trans_detail)
ฟิลด์/แท็บบนหน้าจอ
- หัวเอกสาร: refDoc, sale, wh ไม่มีแท็บ (transLayouts.ts:113)
- ช่อง sale แสดงชื่อ "ผู้ขออนุมัติ:" (transLayouts.ts:306) และไม่แสดงราคา (transLayouts.ts:474)
ผลต่อสต็อก
ไม่มี เพราะไม่อยู่ใน stockRowsSQL
ผลต่อภาษี (VAT/WHT)
ไม่มี
การลงบัญชี
ไม่ลง GL
เอกสารต้นทาง-ปลายทาง
- ปลายทาง: เบิก 56 (คู่ {56,122} trans_ref_import.go:23)
- การคำนวณสถานะต่อเนื่องของ 122/56 ยังไม่ได้พอร์ต (comment ponytail doc_flow.go:89)
ยกเลิก/แก้ไข
- ยกเลิกด้วย flag 123 (doc_cancel.go:53)
ข้อควรระวัง
- เพราะ flow ยังไม่ได้พอร์ต used_status ของใบขอเบิกจึงไม่ถูกคำนวณจากใบเบิก
ที่มาในโค้ด
frontend/account/tabs/transMenuMap.ts:967เมนูfrontend/account/transaction/transLayouts.ts:113FLAG_SPEC 122backend/internal/application/process/trans_ref_import.go:23refImportSpecsbackend/internal/application/process/doc_flow.go:89flow ยังไม่พอร์ตbackend/internal/application/process/doc_cancel.go:53ยกเลิก 123