fix some bug
This commit is contained in:
@@ -10,7 +10,8 @@ type Props = {
|
|||||||
isOpen: boolean,
|
isOpen: boolean,
|
||||||
onConfrim: (text?: string) => void,
|
onConfrim: (text?: string) => void,
|
||||||
label?: string,
|
label?: string,
|
||||||
isHasDescription?: boolean
|
isHasDescription?: boolean,
|
||||||
|
title?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const ModalConfrim: FC<Props> = (props: Props) => {
|
const ModalConfrim: FC<Props> = (props: Props) => {
|
||||||
@@ -22,7 +23,7 @@ const ModalConfrim: FC<Props> = (props: Props) => {
|
|||||||
<DefaulModal
|
<DefaulModal
|
||||||
open={props.isOpen}
|
open={props.isOpen}
|
||||||
close={props.close}
|
close={props.close}
|
||||||
title_header={t('confrim.subject')}
|
title_header={props.title ? props.title : t('confrim.subject')}
|
||||||
isHeader
|
isHeader
|
||||||
>
|
>
|
||||||
<div className='mt-6'>
|
<div className='mt-6'>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const PDFGenerator: FC = () => {
|
|||||||
<Button
|
<Button
|
||||||
onClick={() => navigate(Pages.receipts.factor + id)}
|
onClick={() => navigate(Pages.receipts.factor + id)}
|
||||||
label={status === 'PAID' ? t('receip.get_factor') : t('receip.get_pre_factor')}
|
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'}
|
disabled={financialType !== 'LEGAL' && financialType !== 'REAL'}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -180,6 +180,14 @@ const ReceiptsDetail: FC = () => {
|
|||||||
<span>{NumberFormat(getInvoce.data?.data?.invoice?.tax)}</span> تومان
|
<span>{NumberFormat(getInvoce.data?.data?.invoice?.tax)}</span> تومان
|
||||||
</div>
|
</div>
|
||||||
</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 className='flex justify-between gap-1 items-center text-xs border-t border-[#EAEDF5] h-14'>
|
||||||
<div>
|
<div>
|
||||||
جمع کل
|
جمع کل
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ const PayInvoice: FC<Props> = ({ id, refetch, gateWayId }) => {
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<ModalConfrim
|
<ModalConfrim
|
||||||
|
title={t('receip.pay')}
|
||||||
isOpen={showModal}
|
isOpen={showModal}
|
||||||
close={() => setShowModal(false)}
|
close={() => setShowModal(false)}
|
||||||
onConfrim={getInvoce.data?.data?.remainingToCharge > 0 ? handleChartWallet : handleConfrim}
|
onConfrim={getInvoce.data?.data?.remainingToCharge > 0 ? handleChartWallet : handleConfrim}
|
||||||
|
|||||||
Reference in New Issue
Block a user