fix some bug
This commit is contained in:
@@ -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'>
|
||||
|
||||
@@ -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'}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user