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:
padreug 2025-06-19 17:40:31 +02:00
parent 5bbcee2afa
commit 645970b3e7
2 changed files with 33 additions and 1 deletions

View file

@ -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>