37a6e2dca0
交叉衝突逐側比對:同時保留頁尾欄位與標題可選語意,並標註熱感紙版型仍需有值
22 lines
624 B
TypeScript
22 lines
624 B
TypeScript
/**
|
|
* 票據模板模組(沙盤推演示意)
|
|
*/
|
|
|
|
/** 票據版型識別碼 */
|
|
export type ReceiptLayout = "thermal" | "a4";
|
|
|
|
/** 票據模板設定 */
|
|
export interface ReceiptTemplate {
|
|
/** 模板唯一識別碼 */
|
|
templateId: string;
|
|
/** 版型:熱感紙或 A4 */
|
|
layout: ReceiptLayout;
|
|
/** 模板標題,顯示於票據頂部;留空則帶入門店名稱(熱感紙版型需有值) */
|
|
headerText?: string;
|
|
/** 票據頁尾文字,顯示於票據底部 */
|
|
footerText: string;
|
|
}
|
|
|
|
/** 依版型查詢可用模板 */
|
|
export const listTemplates = (layout: ReceiptLayout): ReceiptTemplate[] => [];
|