override balancing helper- fix double match stockit
This commit is contained in:
parent
ac8281fd98
commit
6cee5cad1a
5 changed files with 20 additions and 2 deletions
|
|
@ -0,0 +1,15 @@
|
|||
if FoodsoftAutomaticInvoices.enabled?
|
||||
Finance::BalancingHelper.class_eval do
|
||||
def balancing_view_partial
|
||||
view = params[:view] || 'edit_results'
|
||||
case view
|
||||
when 'edit_results'
|
||||
'edit_results_by_articles_override'
|
||||
when 'groups_overview'
|
||||
'shared/articles_by/groups'
|
||||
when 'articles_overview'
|
||||
'shared/articles_by/articles'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue