POS หน้าร้าน
POS หน้าร้านเป็น flow ขายหน้าร้านเฉพาะ Terminal สำหรับลูกค้า walk-in จัดการตะกร้า รับชำระเงิน พิมพ์ เปิดลิ้นชัก และ customer display/second screen
ทางเข้าในแอป
| App | Target |
|---|---|
| Mobile | not available |
| POS Terminal | StorefrontPosStack |
ภาพรวมการทำงาน
Service / API ที่เกี่ยวข้อง
StorefrontPosStack: POS navigation, cart, checkout, printing, and second-screen stateorders.ts/invoices.ts: order, invoice, payment, and retry behavior when POS creates accounting documentsproducts.ts: product list, stock, price, and step-price context
สิทธิ์และเงื่อนไข
| เรื่อง | รายละเอียด |
|---|---|
| Terminal menu key | storefrontPos |
| deptCode ที่เห็นเมนู | -2, 1, 2, 3, 4, 7, 29, 21, 8, 9, 12, 20, 22, 23, 27, 28 |
| เงื่อนไขสาขา | เฉพาะ Terminal; งาน customer display/native Android อยู่ใต้ apps/pos-terminal/android |
Workflow หลัก
- เมนูนี้มีเฉพาะ POS Terminal ไม่มีใน Mobile
- งาน second screen/customer display ต้องทำตาม AGENTS: verify, commit/push แล้วรัน
yarn terminal:android:8082 - ยอดตะกร้าต้องตรงกับ payment และเอกสารที่พิมพ์
- อย่าสับสนกับใบจัดสินค้าหน้าร้านซึ่งเป็น fulfillment ของ invoice
Mobile vs POS Terminal
| เรื่อง | Mobile | POS Terminal |
|---|---|---|
| โครงหน้าจอ | not available | StorefrontPosStack |
| รายการ | stack/list screen เฉพาะเมนู | split-pane list card ใน HomeScreen |
| รายละเอียด | detail screen เต็มหน้า | detail panel ฝั่งขวา |
Developer Handoff Map
| Area | Code |
|---|---|
| POS stack | apps/pos-terminal/src/screens/StorefrontPosStack |
| Native Android display | apps/pos-terminal/android |
| Shared order/payment services | apps/pos-terminal/src/services/orders.ts |
| Storefront fulfillment | HomeScreen/StorefrontDetailForm.tsx |