From ef273d46a8b67cbcbd9ec44d6d238c548c8e6b41 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sun, 25 May 2025 10:13:19 +0330 Subject: [PATCH] fix some bug --- src/components/ModalConfrim.tsx | 5 +++-- src/components/PDFGenerator.tsx | 2 +- src/pages/receipts/Detail.tsx | 8 ++++++++ src/pages/receipts/components/PayInvoice.tsx | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/components/ModalConfrim.tsx b/src/components/ModalConfrim.tsx index 78f55ab..5aae045 100644 --- a/src/components/ModalConfrim.tsx +++ b/src/components/ModalConfrim.tsx @@ -10,7 +10,8 @@ type Props = { isOpen: boolean, onConfrim: (text?: string) => void, label?: string, - isHasDescription?: boolean + isHasDescription?: boolean, + title?: string } const ModalConfrim: FC = (props: Props) => { @@ -22,7 +23,7 @@ const ModalConfrim: FC = (props: Props) => {
diff --git a/src/components/PDFGenerator.tsx b/src/components/PDFGenerator.tsx index 63bb13e..3ef83c4 100644 --- a/src/components/PDFGenerator.tsx +++ b/src/components/PDFGenerator.tsx @@ -20,7 +20,7 @@ const PDFGenerator: FC = () => {
+
+
+ جریمه دیرکرد +
+
+ {NumberFormat(getInvoce.data?.data?.invoice?.lateFee)} تومان +
+
جمع کل diff --git a/src/pages/receipts/components/PayInvoice.tsx b/src/pages/receipts/components/PayInvoice.tsx index 32efd4e..402bdca 100644 --- a/src/pages/receipts/components/PayInvoice.tsx +++ b/src/pages/receipts/components/PayInvoice.tsx @@ -55,6 +55,7 @@ const PayInvoice: FC = ({ id, refetch, gateWayId }) => { /> setShowModal(false)} onConfrim={getInvoce.data?.data?.remainingToCharge > 0 ? handleChartWallet : handleConfrim}