fix(finance): preserve visibility and settlement updates

This commit is contained in:
Felipe Coutinho
2026-03-25 00:29:36 +00:00
parent 5f70421f5a
commit 1e0c93fb6c
10 changed files with 18 additions and 3 deletions

View File

@@ -172,6 +172,7 @@ export async function updateTransactionBulkAction(
payerId: data.payerId ?? null,
accountId: data.accountId ?? null,
cardId: data.cardId ?? null,
...(data.isSettled !== undefined && { isSettled: data.isSettled }),
};
if (data.amount !== undefined) {

View File

@@ -705,6 +705,7 @@ export const updateBulkSchema = z.object({
})
.optional()
.nullable(),
isSettled: z.boolean().nullable().optional(),
});
export type UpdateBulkInput = z.infer<typeof updateBulkSchema>;