cancel.cfm previously only blocked cancel if orders had StatusID >= 1 (submitted to kitchen). If submitOrder() failed after addOrderToTab() succeeded, the order stayed at StatusID 0 but was linked to the tab with ApprovalStatus='approved'. This allowed cancelling the tab free. Now checks TabOrders directly — any approved orders with non-zero subtotals block the cancel, regardless of kitchen submission status. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| addMember.cfm | ||
| addOrder.cfm | ||
| approveOrder.cfm | ||
| cancel.cfm | ||
| close.cfm | ||
| get.cfm | ||
| getActive.cfm | ||
| getPresence.cfm | ||
| increaseAuth.cfm | ||
| open.cfm | ||
| pendingOrders.cfm | ||
| rejectOrder.cfm | ||
| removeMember.cfm | ||