27 lines
840 B
TypeScript
27 lines
840 B
TypeScript
export const enum ProformaInvoiceStatusEnum {
|
|
PENDING = 'pending',
|
|
CONFIRMED = 'confirmed',
|
|
ARCHIVED = 'archived',
|
|
}
|
|
|
|
export type InvoiceConfirmStatus =
|
|
| 'pending'
|
|
| 'partially_confirmed'
|
|
| 'confirmed'
|
|
| 'archived'
|
|
|
|
export const invoiceListTabStatuses: Record<
|
|
ProformaInvoiceStatusEnum,
|
|
InvoiceConfirmStatus[]
|
|
> = {
|
|
[ProformaInvoiceStatusEnum.PENDING]: ['pending'],
|
|
[ProformaInvoiceStatusEnum.CONFIRMED]: ['partially_confirmed', 'confirmed'],
|
|
[ProformaInvoiceStatusEnum.ARCHIVED]: ['archived'],
|
|
}
|
|
|
|
export const invoiceListTabs = [
|
|
{ label: 'در انتظار تایید', value: ProformaInvoiceStatusEnum.PENDING },
|
|
{ label: 'تایید شده', value: ProformaInvoiceStatusEnum.CONFIRMED },
|
|
{ label: 'آرشیو شده', value: ProformaInvoiceStatusEnum.ARCHIVED },
|
|
] as const
|