feat(receipt): 新增票據批量列印

由第二開發者開發,暫推遠端以便與第一開發者共享協作
This commit is contained in:
dev-b
2026-10-16 15:52:58 +08:00
parent be693bbc66
commit cd78d5c8e1
+20
View File
@@ -0,0 +1,20 @@
/**
* 票據批量列印模組(沙盤推演示意)
* 由第二開發者在共享功能分支 feature/receipt-batch-print 上開發
*/
/** 單筆批量列印工作 */
export interface BatchPrintJob {
/** 使用的票據模板識別碼 */
templateId: string;
/** 目標倉庫識別碼 */
warehouseId: string;
}
/**
* 建立批量列印工作清單
* @param templateId - 票據模板識別碼
* @param warehouseIds - 目標倉庫識別碼清單
* @returns 逐倉庫展開的列印工作
*/
export const createBatchJobs = (templateId: string, warehouseIds: string[]): BatchPrintJob[] => warehouseIds.map((id) => ({ templateId, warehouseId: id }));