feat(budget): gelir planı ve günlük plan

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 01:22:38 +03:00
parent 21b3715d35
commit 39aa19d168
8 changed files with 698 additions and 2 deletions
+17
View File
@@ -27,3 +27,20 @@ export const budgetLimitsSchema = z.object({
),
});
export type BudgetLimitsForm = z.output<typeof budgetLimitsSchema>;
/** Gelir planı: elle eklenen beklenen gelirler (liste tümüyle değiştirilir). */
export const incomeItemsSchema = z.object({
month: budgetMonthSchema,
items: z
.array(
z.object({
name: z.string().trim().min(1, tr.common.required).max(80, tr.validation.nameMax),
amount: nonNegativeMoneySchema.refine(
(n) => n > 0,
tr.transactions.validation.amountPositive,
),
}),
)
.max(30),
});
export type IncomeItemsForm = z.output<typeof incomeItemsSchema>;