Show the financial transaction type if there are more than one type #367

This commit is contained in:
Patrick Gansterer 2017-03-04 14:15:39 +01:00
parent e7657b987f
commit 924f346b4c
9 changed files with 98 additions and 15 deletions

View file

@ -13,6 +13,11 @@
%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}"])
%p
%b= heading_helper(Ordergroup, :user_tokens) + ':'
= @ordergroup.memberships.map{|m| show_user m.user}.join(', ')