add invoice count

This commit is contained in:
2026-05-17 20:05:01 +03:30
parent c88b3fd7bc
commit 92c0f96358
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -91,6 +91,17 @@ const RequestList: FC = () => {
)
}
},
{
key: 'invoices',
title: 'فاکتورها',
render: (item) => {
return (
<div className=' '>
{item.invoices.length}
</div>
)
}
},
{
key: 'actions',
title: '',
+2
View File
@@ -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<RequestType[]>;