feat(receipt): 新增票據模板模組

提供熱感紙與 A4 版型模板查詢,並同步模組註冊表
This commit is contained in:
HIsheR
2026-10-16 15:43:08 +08:00
parent 8c0a654904
commit f81fdd9610
2 changed files with 20 additions and 0 deletions
+1
View File
@@ -6,3 +6,4 @@
| --- | --- | --- |
| cash-sale | src/modules/cash-sale.ts | 已註冊 |
| pickup-point | src/modules/pickup-point.ts | 已註冊 |
| receipt-template | src/modules/receipt-template.ts | 已註冊 |
+19
View File
@@ -0,0 +1,19 @@
/**
* 票據模板模組(沙盤推演示意)
*/
/** 票據版型識別碼 */
export type ReceiptLayout = "thermal" | "a4";
/** 票據模板設定 */
export interface ReceiptTemplate {
/** 模板唯一識別碼 */
templateId: string;
/** 版型:熱感紙或 A4 */
layout: ReceiptLayout;
/** 模板標題,顯示於票據頂部 */
headerText: string;
}
/** 依版型查詢可用模板 */
export const listTemplates = (layout: ReceiptLayout): ReceiptTemplate[] => [];