Show sums for financial transaction types for ordergroups
This commit is contained in:
parent
24b33ea94b
commit
b029fb98d6
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,17 @@
|
||||||
%strong= t('.balance', balance: number_to_currency(@ordergroup.account_balance))
|
%strong= t('.balance', balance: number_to_currency(@ordergroup.account_balance))
|
||||||
%br/
|
%br/
|
||||||
%small= t('.last_updated_at', when: distance_of_time_in_words(Time.now, @ordergroup.account_updated))
|
%small= t('.last_updated_at', when: distance_of_time_in_words(Time.now, @ordergroup.account_updated))
|
||||||
|
%p
|
||||||
|
- unless FoodsoftConfig[:charge_members_manually]
|
||||||
|
%p
|
||||||
|
%b= heading_helper(Ordergroup, :available_funds) + ':'
|
||||||
|
= number_to_currency(@ordergroup.get_available_funds)
|
||||||
|
- if FinancialTransactionClass.has_multiple_classes
|
||||||
|
- FinancialTransactionClass.sorted.each do |c|
|
||||||
|
%p
|
||||||
|
%b= c.display + ':'
|
||||||
|
= number_to_currency(@ordergroup["sum_of_class_#{c.id}"])
|
||||||
|
|
||||||
|
|
||||||
= render 'transactions_search', url: finance_ordergroup_transactions_path(@ordergroup)
|
= render 'transactions_search', url: finance_ordergroup_transactions_path(@ordergroup)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue