add invoice count
This commit is contained in:
@@ -91,6 +91,17 @@ const RequestList: FC = () => {
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'invoices',
|
||||
title: 'فاکتورها',
|
||||
render: (item) => {
|
||||
return (
|
||||
<div className=' '>
|
||||
{item.invoices.length}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'actions',
|
||||
title: '',
|
||||
|
||||
@@ -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[]>;
|
||||
|
||||
Reference in New Issue
Block a user