// * Batch // * Batch (History) // * Batch (Stash) export function updateShowNotCompleteSets (showNotCompleteSets: boolean): IAction export function undo (): ThunkFunction export function redo (): ThunkFunction export function selectBatch (batch: IAppOrderBatch): ThunkFunction export function deselectItems (): ThunkFunction export function selectItem (itemKey: TItemKey, setItemKey: TSetItemKey = null): ThunkFunction export function selectQuantity (serial: number): ThunkFunction export function addItem (menuItemOrSet: IAppMenuItem | IAppSet): ThunkFunction export function addSetItem (setMenuItem: IAppMenuItem): ThunkFunction export function adjustRequiredSetItem (set: IAppSet): ThunkFunction // 刪除超過套餐餐點 setMenuIndex > quantity 的餐點 export function deleteOverIndexSetMenuItems (): ThunkFunction // Use lodash.set to update selectedItem, calculate total. export function updateSelectedItem (path: PropertyPath, value: any): ThunkFunction // Use lodash.set to update selectedItem, calculate total. export function updateSelectedSetItem (path: PropertyPath, value: any): void export function updateQuantity (newQuantity: number): ThunkFunction export function addQuantity ( addQuantity: number, // 增加數量(可為負) ): ThunkFunction export function updatePrice (price: number): ThunkFunction export function updateOption (optionGroup: IMenuOptionGroup, optionItem: IMenuOptionItem): ThunkFunction export function toggleTag (tag: IMenuTag): ThunkFunction export function updateRemark (remark: string): ThunkFunction export function resetItems (): ThunkFunction export function deleteItem (itemKey: string): ThunkFunction export function updateModifier (modifier: IPriceModifier): ThunkFunction export function resetBatch (): ThunkFunction // 儲存現在的 selectedBatch 到 stashes,並清除 selectedBatch export function stashBatch (): ThunkFunction // 刪除指定的 stash export function dropStash (batchStash: IBatchHistory): ThunkFunction // 複製 Stash 蓋掉 selectedBatch export function applyStash (batchStash: IBatchHistory): ThunkFunction // 用指定的 stash 蓋掉 selectedBatch,並刪除指定的 stash export function popStash (batchStash: IBatchHistory): ThunkFunction // 刪除全部的 stash export function dropAllStash (): ThunkFunction