Files
butcem/src/shared/accounts.ts
T

21 lines
765 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 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";