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:
@@ -204,8 +204,11 @@ export type SettlementStatus = "pending" | "approved" | "rejected";
|
||||
/** `mixed` فقط در نمای تجمیعی بیمار معنا دارد: مطالبات آن بیمار وضعیت یکسان ندارند. */
|
||||
export type ClaimStatus = "pending" | "submitted" | "approved" | "rejected" | "paid" | "mixed";
|
||||
|
||||
/** وضعیت دوحالتهی صورتحساب در فهرست پرداختها — با `PaymentStatus` درگاه فرق دارد. */
|
||||
export type InvoiceListStatus = "paid" | "unsettled";
|
||||
/**
|
||||
* وضعیت پرداخت صورتحساب — از مجموع پرداختهای مراجعه در برابر سهم بیمار مشتق
|
||||
* میشود (ستون `invoices.status` فقط چرخهی حیات است). با `PaymentStatus` درگاه فرق دارد.
|
||||
*/
|
||||
export type InvoiceListStatus = "paid" | "partial" | "unsettled";
|
||||
|
||||
export interface ClaimPatientRow {
|
||||
patient_uuid: string;
|
||||
|
||||
Reference in New Issue
Block a user