Merge pull request #1821 from internetee/1819-improve-credit-account-balance-overview

Registrar / REPP: Preserve balance after billable action
This commit is contained in:
Timo Võhmar 2021-03-11 15:39:31 +02:00 committed by GitHub
commit 98bbc52c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 68 additions and 3 deletions

View file

@ -14,7 +14,7 @@
<table class="table table-hover table-condensed">
<thead>
<tr>
<th class="col-xs-5">
<th class="col-xs-3">
<%= sort_link(@q, 'description') %>
</th>
<th class="col-xs-2">
@ -26,6 +26,9 @@
<th class="col-xs-2">
<%= sort_link(@q, 'sum') %>
</th>
<th class="col-xs-2">
<%= sort_link(@q, 'new_balance', 'New balance') %>
</th>
</tr>
</thead>
<tbody>
@ -45,6 +48,9 @@
<td class="<%= c %>">
<%= s %>
</td>
<td>
<%= x.new_balance.present? ? "#{currency(x.new_balance)} EUR" : 'N/A' %>
</td>
</tr>
<% end %>
</tbody>