Revert "TP-31095 | Handling Decimal in Outstanding due | Himanshu Kansal (#464)" (#467)

This reverts commit 252e3b06eb.
This commit is contained in:
Himanshu Kansal
2023-07-05 19:41:41 +05:30
committed by GitHub Enterprise
parent 252e3b06eb
commit 8fd5e424fe
5 changed files with 9 additions and 9 deletions

View File

@@ -109,7 +109,7 @@ const CalculateOverDue: React.FC<PropsWithChildren> = () => {
{OverdueMappings[key]}
</Typography>
<Typography className={styles.redColor} as={'p'} variant={'p3'}>
{formatAmount(data[key]?.value, false)}
{formatAmount(data[key]?.value)}
</Typography>
</div>
);
@@ -122,7 +122,7 @@ const CalculateOverDue: React.FC<PropsWithChildren> = () => {
Overdue on {getFormatDate(overDue.date, DateFormat.DD_MMM)}
</Typography>
<Typography className={styles.dark} as={'p'} variant={'p3'}>
{formatAmount(totalOverdue, false)}
{formatAmount(totalOverdue)}
</Typography>
</div>
);

View File

@@ -89,7 +89,7 @@ const OverviewSummaryBox = () => {
variant="h2"
className={cx(styles.heading, styles.headingColorRed)}
>
{formatAmount(outstandingAmount?.amount, false)}
{formatAmount(outstandingAmount?.amount)}
</Typography>
<Typography as="div" variant="h4" className={styles.subtext}>
{currentDpd} days since due date
@@ -119,7 +119,7 @@ const OverviewSummaryBox = () => {
variant="h2"
className={cx(styles.heading, styles.headingColorBlack)}
>
{formatAmount(lastPaidRecord?.amount as number, false)}
{formatAmount(lastPaidRecord?.amount as number)}
</Typography>
<Typography as="div" variant="h4" className={styles.subtext}>
Last paid on{' '}

View File

@@ -206,17 +206,17 @@ const Payments = () => {
>
<KeyValueItem
keyText={'Principal'}
valueText={formatAmount(foreclosureAmount.principal, false)}
valueText={formatAmount(foreclosureAmount.principal)}
itemClasses={styles.foreclosureItem}
/>
<KeyValueItem
keyText={'Interest'}
valueText={formatAmount(foreclosureAmount.interest, false)}
valueText={formatAmount(foreclosureAmount.interest)}
itemClasses={styles.foreclosureItem}
/>
<KeyValueItem
keyText={'Fees'}
valueText={formatAmount(foreclosureAmount.otherFees, false)}
valueText={formatAmount(foreclosureAmount.otherFees)}
itemClasses={styles.foreclosureItem}
/>
</Accordion>

View File

@@ -30,7 +30,7 @@ const ViewFeedbackForm: React.FC<ViewFeedbackFormProps> = props => {
: answer.answerType === AnswerType.DATE
? answer.inputDate
: answer.answerType === AnswerType.AMOUNT
? formatAmount(answer.inputAmount ?? 0, false)
? formatAmount(answer.inputAmount ?? 0)
: answer.inputText
}));
rowData.push({

View File

@@ -46,7 +46,7 @@ export const All_CASES_COLUMN_DEFS = [
field: 'outStandingAmount',
headerName: 'OutStanding Amount',
serverSortable: true,
cellRenderer: (params: ICellRendererParams) => formatAmount(params.value, false)
cellRenderer: (params: ICellRendererParams) => formatAmount(params.value)
},
{ field: 'currentDPD', headerName: 'DPD', serverSortable: true, width: 100 },
{