mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 19:01:47 +00:00
fix(finance): preserve visibility and settlement updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -705,6 +705,7 @@ export const updateBulkSchema = z.object({
|
||||
})
|
||||
.optional()
|
||||
.nullable(),
|
||||
isSettled: z.boolean().nullable().optional(),
|
||||
});
|
||||
|
||||
export type UpdateBulkInput = z.infer<typeof updateBulkSchema>;
|
||||
|
||||
Reference in New Issue
Block a user