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.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/** برچسب فارسی روشهای پرداخت — تنها مرجع؛ در اکاردئون مراجعه و صفحهی پرداختها مشترک است. */
|
||||
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;
|
||||
Reference in New Issue
Block a user