From 92c0f96358e36ba8e1818f1dc81d524cb196ac3a Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sun, 17 May 2026 20:05:01 +0330 Subject: [PATCH] add invoice count --- src/pages/requests/RequestList.tsx | 11 +++++++++++ src/pages/requests/types/Types.ts | 2 ++ 2 files changed, 13 insertions(+) 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;