diff --git a/src/pages/requests/RequestList.tsx b/src/pages/requests/RequestList.tsx index 7d95ece..f21ec99 100644 --- a/src/pages/requests/RequestList.tsx +++ b/src/pages/requests/RequestList.tsx @@ -91,6 +91,17 @@ const RequestList: FC = () => { ) } }, + { + key: 'invoices', + title: 'فاکتورها', + render: (item) => { + return ( +
+ {item.invoices.length} +
+ ) + } + }, { key: 'actions', title: '', diff --git a/src/pages/requests/types/Types.ts b/src/pages/requests/types/Types.ts index 3b1a6c7..f8d12e6 100644 --- a/src/pages/requests/types/Types.ts +++ b/src/pages/requests/types/Types.ts @@ -1,3 +1,4 @@ +import type { InvoiceType } from "@/pages/invoice/types/Types"; import type { UserType } from "@/pages/order/types/Types"; import type { ProductType } from "@/pages/product/types/Types"; import type { BaseResponse } from "@/shared/types/Types"; @@ -29,6 +30,7 @@ export type RequestType = { requestNumber: number; status: RequestStatus; items: RequestItemType[]; + invoices: InvoiceType[] }; export type RequestResponseType = BaseResponse;