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",
|
paid: "Paid",
|
||||||
unpaid: "Unpaid",
|
unpaid: "Unpaid",
|
||||||
cancelled: "Cancelled",
|
cancelled: "Cancelled",
|
||||||
|
refunded: "Refunded",
|
||||||
overdue: "Overdue",
|
overdue: "Overdue",
|
||||||
collections: "Collections",
|
collections: "Collections",
|
||||||
draft: "Draft",
|
draft: "Draft",
|
||||||
|
"payment pending": "Pending",
|
||||||
};
|
};
|
||||||
|
|
||||||
return statusMap[status?.toLowerCase()] || "Unpaid";
|
return statusMap[status?.toLowerCase()] || "Unpaid";
|
||||||
|
|||||||
@ -14,6 +14,7 @@ export const INVOICE_STATUS = {
|
|||||||
UNPAID: "Unpaid",
|
UNPAID: "Unpaid",
|
||||||
OVERDUE: "Overdue",
|
OVERDUE: "Overdue",
|
||||||
CANCELLED: "Cancelled",
|
CANCELLED: "Cancelled",
|
||||||
|
REFUNDED: "Refunded",
|
||||||
COLLECTIONS: "Collections",
|
COLLECTIONS: "Collections",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user