mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
refactor(FE-435,436): Select Nominal Biaya by approval step
This commit is contained in:
@@ -448,7 +448,14 @@ const ExpenseRequestContent = ({
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Nominal Biaya</th>
|
<th>Nominal Biaya</th>
|
||||||
<th>:</th>
|
<th>:</th>
|
||||||
<td>{formatCurrency(initialValues?.grand_total ?? 0)}</td>
|
<td>
|
||||||
|
{formatCurrency(
|
||||||
|
initialValues?.latest_approval.step_number === 4 ||
|
||||||
|
initialValues?.latest_approval.step_number === 5
|
||||||
|
? (initialValues?.total_realisasi ?? 0)
|
||||||
|
: (initialValues?.total_pengajuan ?? 0)
|
||||||
|
)}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Status Pencairan</th>
|
<th>Status Pencairan</th>
|
||||||
|
|||||||
@@ -235,7 +235,12 @@ const ExpensePDF = ({ expense }: ExpensePDFProps) => {
|
|||||||
{ label: 'Nama Pengaju', value: expense?.created_user.name },
|
{ label: 'Nama Pengaju', value: expense?.created_user.name },
|
||||||
{
|
{
|
||||||
label: 'Nominal Biaya',
|
label: 'Nominal Biaya',
|
||||||
value: formatCurrency(expense?.grand_total ?? 0),
|
value: formatCurrency(
|
||||||
|
expense?.latest_approval.step_number === 4 ||
|
||||||
|
expense?.latest_approval.step_number === 5
|
||||||
|
? (expense?.total_realisasi ?? 0)
|
||||||
|
: (expense?.total_pengajuan ?? 0)
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Nominal Pengajuan',
|
label: 'Nominal Pengajuan',
|
||||||
|
|||||||
Reference in New Issue
Block a user