allow to edit GroupOrderArticle result from orders screen
Conflicts: app/assets/javascripts/application.js
This commit is contained in:
parent
f9d2c20aaa
commit
60826ceedc
34 changed files with 393 additions and 220 deletions
11
app/views/shared/articles_by/_article_single.html.haml
Normal file
11
app/views/shared/articles_by/_article_single.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
%tbody{id: "oa_#{order_article.id}"}
|
||||
- if not defined?(heading) or heading
|
||||
%tr.list-heading
|
||||
%th.name{:colspan => "4"}>
|
||||
= order_article.article.name + ' '
|
||||
= "(#{order_article.article.unit}, #{number_to_currency order_article.price.fc_price}"
|
||||
- pkg_info = pkg_helper(order_article.price)
|
||||
= ", #{pkg_info}".html_safe unless pkg_info.blank?
|
||||
)
|
||||
- for goa in order_article.group_order_articles.ordered
|
||||
= render 'shared/articles_by/article_single_goa', goa: goa, edit: (edit rescue nil)
|
||||
Loading…
Add table
Add a link
Reference in a new issue