feat(accounts): hesaplar (KMH, kredi kartı, yemek kartı, yalnızca ben)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/** Hesap türleri ve yemek kartı sağlayıcıları (Bölüm 6.1). */
|
||||
export const ACCOUNT_TYPES = ["cash", "bank", "savings", "credit_card", "meal_card"] as const;
|
||||
export type AccountType = (typeof ACCOUNT_TYPES)[number];
|
||||
|
||||
export const MEAL_CARD_PROVIDERS = [
|
||||
"pluxee",
|
||||
"multinet",
|
||||
"edenred",
|
||||
"setcard",
|
||||
"metropol",
|
||||
"other",
|
||||
] as const;
|
||||
export type MealCardProvider = (typeof MEAL_CARD_PROVIDERS)[number];
|
||||
|
||||
/** Kredi kartı son ödeme kuralı: kesimden N gün sonra | ayın sabit günü. */
|
||||
export const DUE_RULE_KINDS = ["daysAfter", "fixedDay"] as const;
|
||||
export type DueRuleKind = (typeof DUE_RULE_KINDS)[number];
|
||||
|
||||
/** Borç (negatif bakiye) taşıyan hesap türleri. */
|
||||
export const isLiabilityType = (type: AccountType) => type === "credit_card";
|
||||
Reference in New Issue
Block a user