Simplifiying balancing view part 2. Lets call it finished.
This commit is contained in:
parent
dc0d1b3e46
commit
af3c07f031
26 changed files with 185 additions and 219 deletions
13
app/helpers/finance/balancing_helper.rb
Normal file
13
app/helpers/finance/balancing_helper.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module Finance::BalancingHelper
|
||||
def balancing_view_partial
|
||||
view = params[:view] || 'edit_results'
|
||||
case view
|
||||
when 'edit_results' then
|
||||
'edit_results_by_articles'
|
||||
when 'groups_overview' then
|
||||
'shared/articles_by_groups'
|
||||
when 'articles_overview' then
|
||||
'shared/articles_by_articles'
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue