fix(FE): adding select injection type for positive and negative value

This commit is contained in:
randy-ar
2026-01-26 16:08:23 +07:00
parent 40eaa729ef
commit 85f4a5deaa
4 changed files with 53 additions and 3 deletions
@@ -66,7 +66,11 @@ const FinanceDetail = ({ finance }: { finance: Finance }) => {
},
{
label: 'Nominal',
value: formatCurrency(Math.abs(finance.nominal)),
value: formatCurrency(
finance.transaction_type === 'INJECTION'
? finance.nominal
: Math.abs(finance.nominal)
),
},
].filter((item) => {
// Hide party account number row if transaction type is INJECTION