Enhance WHMCS data transformer and shared status definitions with new invoice statuses
- Added 'Refunded' and 'Pending' statuses to the WHMCS data transformer for improved status mapping. - Updated shared status definitions to include 'Refunded' for consistency across the application.
This commit is contained in:
parent
927d1c7dcf
commit
feed3bd4b7
@ -211,9 +211,11 @@ export class WhmcsDataTransformer {
|
||||
paid: "Paid",
|
||||
unpaid: "Unpaid",
|
||||
cancelled: "Cancelled",
|
||||
refunded: "Refunded",
|
||||
overdue: "Overdue",
|
||||
collections: "Collections",
|
||||
draft: "Draft",
|
||||
"payment pending": "Pending",
|
||||
};
|
||||
|
||||
return statusMap[status?.toLowerCase()] || "Unpaid";
|
||||
|
||||
@ -14,6 +14,7 @@ export const INVOICE_STATUS = {
|
||||
UNPAID: "Unpaid",
|
||||
OVERDUE: "Overdue",
|
||||
CANCELLED: "Cancelled",
|
||||
REFUNDED: "Refunded",
|
||||
COLLECTIONS: "Collections",
|
||||
} as const;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user