mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Show real balance in invoices view
This commit is contained in:
parent
8768c0e1d6
commit
99aecc476f
5 changed files with 14 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
|||
= link_to(t('add_deposit'), new_registrar_deposit_path, class: 'btn btn-default')
|
||||
|
||||
%hr
|
||||
= t('your_current_credit_account_balance_is', balance: 1000.0)
|
||||
= t('your_current_account_balance_is', balance: current_user.registrar.cash_account.balance)
|
||||
|
||||
%h1= t('invoices')
|
||||
%hr
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
%dt= t('due_date')
|
||||
%dd= l(@invoice.due_date)
|
||||
|
||||
%dt= t('paid_at')
|
||||
- if @invoice.paid_at
|
||||
%dd= l(@invoice.paid_at)
|
||||
- else
|
||||
%dd{class: 'text-danger'}= t('unpaid')
|
||||
|
||||
%dt= t('payment_term')
|
||||
%dd= t(@invoice.payment_term)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue