docs(budget): say what settled_at does when it is left out

This commit is contained in:
Maurice
2026-09-12 14:13:47 +02:00
parent 259a8c6b4d
commit bc6d804af6
4 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -240,7 +240,8 @@ export const budgetCreateSettlementRequestSchema = z.object({
amount: z.number(),
// The display currency the amount was entered in; the server freezes its FX rate.
currency: z.string().nullable().optional(),
// The day the transfer happened; defaults to today (server-side) when omitted.
// The day the transfer happened. Null when the caller sets none; the ledger then
// uses the day it was recorded, which is where every older payment already sits.
settled_at: z.string().nullable().optional(),
});
export type BudgetCreateSettlementRequest = z.infer<typeof budgetCreateSettlementRequestSchema>;