fix some bug

This commit is contained in:
hamid zarghami
2025-05-25 10:13:19 +03:30
parent b4b52018ba
commit ef273d46a8
4 changed files with 13 additions and 3 deletions
+3 -2
View File
@@ -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: Props) => {
@@ -22,7 +23,7 @@ const ModalConfrim: FC<Props> = (props: Props) => {
<DefaulModal
open={props.isOpen}
close={props.close}
title_header={t('confrim.subject')}
title_header={props.title ? props.title : t('confrim.subject')}
isHeader
>
<div className='mt-6'>
+1 -1
View File
@@ -20,7 +20,7 @@ const PDFGenerator: FC = () => {
<Button
onClick={() => navigate(Pages.receipts.factor + id)}
label={status === 'PAID' ? t('receip.get_factor') : t('receip.get_pre_factor')}
className='bg-[#000] text-xs mt-2'
className='bg-[#000] text-xs '
disabled={financialType !== 'LEGAL' && financialType !== 'REAL'}
/>
);
+8
View File
@@ -180,6 +180,14 @@ const ReceiptsDetail: FC = () => {
<span>{NumberFormat(getInvoce.data?.data?.invoice?.tax)}</span> تومان
</div>
</div>
<div className='flex justify-between items-center text-xs border-t border-[#EAEDF5] h-14'>
<div>
جریمه دیرکرد
</div>
<div>
<span>{NumberFormat(getInvoce.data?.data?.invoice?.lateFee)}</span> تومان
</div>
</div>
<div className='flex justify-between gap-1 items-center text-xs border-t border-[#EAEDF5] h-14'>
<div>
جمع کل
@@ -55,6 +55,7 @@ const PayInvoice: FC<Props> = ({ id, refetch, gateWayId }) => {
/>
<ModalConfrim
title={t('receip.pay')}
isOpen={showModal}
close={() => setShowModal(false)}
onConfrim={getInvoce.data?.data?.remainingToCharge > 0 ? handleChartWallet : handleConfrim}