Ticket status transitions and bulk livestock ops
commit2025-09-09 · mystockaid
Wired up the ticket lifecycle on the edit page: draft tickets can now be finalized to open, and draft or open tickets can be cancelled, both behind a confirmation dialog. Added matching tRPC endpoints (open, cancel) and a finalizeTicketWithPayment path that refuses to advance an open ticket until payments cover the total, which is the only sensible behavior but still nice to have in code. Also split the livestock service's per-item update/delete into proper bulkUpdate and bulkDelete with their own router endpoints and a pile of new tests, and moved the post-delete ticket totals recalc outside the transaction so it stops fighting itself. Status pill on the ticket page got the obligatory colored backgrounds.
3 commits across 1 repo (heeler: 3). 10 files changed. Diff was truncated for summarization.
Related
- ProjectStockaid(mystockaid.com)