Add remaining balance display and fetch functionality for DCA clients: update index.js to include remaining_balance in client data retrieval and enhance index.html to display the balance with conditional formatting. Ensure balances are refreshed after data updates for accurate representation.
This commit is contained in:
parent
5bbcee2afa
commit
645970b3e7
2 changed files with 33 additions and 1 deletions
|
|
@ -51,6 +51,11 @@
|
|||
${ col.value }
|
||||
</q-badge>
|
||||
</div>
|
||||
<div v-else-if="col.field == 'remaining_balance'">
|
||||
<span :class="col.value > 0 ? 'text-green-8 text-weight-bold' : 'text-grey-6'">
|
||||
${ formatCurrency(col.value || 0) }
|
||||
</span>
|
||||
</div>
|
||||
<div v-else-if="col.field == 'fixed_mode_daily_limit' && col.value">
|
||||
${ formatCurrency(col.value) }
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue