mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
Merge branch 'hotfix/finance' into 'development'
[HOTFIX/FE] Fixing Injection Balance Negative value See merge request mbugroup/lti-web-client!255
This commit is contained in:
@@ -30,7 +30,7 @@ const FinanceDetail = ({ finance }: { finance: Finance }) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Jenis Transaksi',
|
label: 'Jenis Transaksi',
|
||||||
value: finance.transaction_type,
|
value: formatTitleCase(finance.transaction_type.split('_').join(' ')),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Pihak',
|
label: 'Pihak',
|
||||||
@@ -56,7 +56,9 @@ const FinanceDetail = ({ finance }: { finance: Finance }) => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Nomor Rekening',
|
label: 'Nomor Rekening',
|
||||||
value: `${finance.bank?.alias} - ${finance.bank?.account_number} - ${finance.bank?.owner}`,
|
value: finance.bank?.alias
|
||||||
|
? `${finance.bank?.alias} - ${finance.bank?.account_number} - ${finance.bank?.owner}`
|
||||||
|
: '-',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: `Rekening ${formatTitleCase(finance.party?.type)}`,
|
label: `Rekening ${formatTitleCase(finance.party?.type)}`,
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const FormFinanceInjection = ({
|
|||||||
return {
|
return {
|
||||||
bank_id: Number(values.bank_id_option?.value) || 0,
|
bank_id: Number(values.bank_id_option?.value) || 0,
|
||||||
adjustment_date: formatDate(values.adjustment_date, 'YYYY-MM-DD'),
|
adjustment_date: formatDate(values.adjustment_date, 'YYYY-MM-DD'),
|
||||||
nominal: Number(values.nominal.replace(/\D/g, '')) || 0,
|
nominal: isNaN(Number(values.nominal)) ? 0 : Number(values.nominal),
|
||||||
notes: values.note,
|
notes: values.note,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user