From dd4063b5dad3b26d27084a9ab90aca53a5aff44d Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 25 Feb 2026 09:34:23 +0330 Subject: [PATCH] add description and attachment in detail of invoice --- .env | 4 ++-- src/pages/invoice/Detail.tsx | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 78e5a0b..c4541ec 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ VITE_TOKEN_NAME = 'negareh_t' VITE_REFRESH_TOKEN_NAME = 'negareh_rt' -# VITE_API_BASE_URL = 'https://negareh-api.dev.danakcorp.com' -VITE_API_BASE_URL = 'http://10.197.246.88:4000' +VITE_API_BASE_URL = 'https://negareh-api.dev.danakcorp.com' +# VITE_API_BASE_URL = 'http://10.197.246.88:4000' diff --git a/src/pages/invoice/Detail.tsx b/src/pages/invoice/Detail.tsx index a9ae624..189f1fc 100644 --- a/src/pages/invoice/Detail.tsx +++ b/src/pages/invoice/Detail.tsx @@ -198,6 +198,32 @@ const InvoiceDetail: FC = () => { روش پرداخت: {invoiceData.paymentMethod} + + {invoice?.description && ( +
+ توضیحات: + {invoice.description} +
+ )} + + {invoice?.attachments && invoice.attachments.length > 0 && ( +
+ پیوست‌ها: + +
+ )} {/* بخش دوم: اقلام درخواستی */}