Files
clinicpro/assets/admin/lib/paymentMethods.ts
T
hamed 357adb1d14 feat: enhance payment status handling and summary in MyPaymentsPage
- Added support for 'partial' payment status in MyPaymentsPage and related components.
- Updated API responses to include 'paid_rials' and 'summary' for invoices.
- Introduced InvoicePaymentStatus service to derive payment status based on actual payments.
- Enhanced tests to cover new payment scenarios including partial payments and payment methods.
- Updated documentation to reflect changes in payment status and API responses.
2026-07-19 10:38:29 +03:30

14 lines
522 B
TypeScript

/** برچسب فارسی روش‌های پرداخت — تنها مرجع؛ در اکاردئون مراجعه و صفحه‌ی پرداخت‌ها مشترک است. */
export const PAYMENT_METHOD_LABELS: Record<string, string> = {
cash: 'نقدی',
card: 'کارت',
pos: 'کارتخوان',
wallet: 'کیف پول',
insurance: 'بیمه',
online: 'آنلاین',
pending: 'در انتظار',
};
export const paymentMethodLabel = (method: string): string =>
PAYMENT_METHOD_LABELS[method] ?? method;