- 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.
14 lines
522 B
TypeScript
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;
|