---
# System prepended metadata

title: 錢櫃
tags: [NewPOS]

---

---
tags: NewPOS
---
# 錢櫃


[TOC]

## 流程圖

``` mermaid
graph TD;
既有流程至選付款別-->選取現金
選取現金-->彈開錢箱
彈開錢箱-->跳出輸入付款金額視窗
跳出輸入付款金額視窗-->輸入金額
輸入金額-->完成交易
```
### 問題
1. 因跳出錢箱是自動跳出,故付款金額視窗也可以放一顆手動按鈕,當第一次開啟失敗可以再次手動開啟



```plantuml
@startuml opencashdrawer
|mPOS/POS|
start
:Cash Payment;

:Send cash drawer message;
|DOCK Service|
:send cash drawer code to esc/pos;
|ESC/POS\n(Receipt Printer)|
:kick cash drawer;
stop
@enduml

```

> [MQTT scpos.kickdrawer](https://hackmd.io/@tk3c-mpos/ryYoCmSRu/https%3A%2F%2Fhackmd.io%2FP7FuhzegRvObKvrjEG0m_Q#receipt-printer--escpos)