feat(GRO-785): validate tip split totals before marking invoice paid #333

Merged
groombook-engineer[bot] merged 7 commits from feature/gro-628-frontend-error-handling into dev 2026-04-17 22:50:45 +00:00
Showing only changes of commit 2153505875 - Show all commits
+1
View File
@@ -363,6 +363,7 @@ invoicesRouter.patch(
}
// Destructure tipSplits out — it belongs to a separate table, not the invoices column
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { tipSplits: _tipSplits, ...updateBody } = body as Record<string, unknown>;
const update: Record<string, unknown> = { ...updateBody, updatedAt: new Date() };