Add UI to show and create financial transactions for the foodcoop
This commit is contained in:
parent
1a49bee42d
commit
602f663245
12 changed files with 66 additions and 29 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#
|
||||
# Methods added to this helper will be available to all templates in the application.
|
||||
module ApplicationHelper
|
||||
include PathHelper
|
||||
|
||||
def format_time(time = Time.now)
|
||||
I18n.l(time, :format => "%d.%m.%Y %H:%M") unless time.nil?
|
||||
|
|
|
|||
11
app/helpers/path_helper.rb
Normal file
11
app/helpers/path_helper.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
module PathHelper
|
||||
|
||||
def finance_group_transactions_path(ordergroup)
|
||||
if ordergroup
|
||||
finance_ordergroup_transactions_path(ordergroup)
|
||||
else
|
||||
finance_foodcoop_financial_transactions_path
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue