handle form print

This commit is contained in:
hamid zarghami
2026-02-02 16:15:06 +03:30
parent 199fbe4987
commit 96444c726c
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ const OrderItem: FC<Props> = ({ item, estimatedDays }) => {
<div>#{item.id}</div>
<Link to={Paths.print.form + item.id + `/${id}`}>
<Button
label='فرم پرینت'
className='w-fit px-6'
label={item.printAttributes?.length ? 'ویرایش فرم پرینت' : 'فرم پرینت'}
className='w-fit px-6 bg-blue-400 text-white'
/>
</Link>
</div>
+4
View File
@@ -144,6 +144,10 @@ export type OrderItemType = {
value: string;
}[];
discount: number;
printAttributes?: {
value: string;
fieldId: number;
}[];
};
export type TicketsResponseType = BaseResponse<TicketType[]>;
export type OrderDetailResponseType = BaseResponse<MyOrderType>;