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/_group_single_goa.html.haml
Normal file
11
app/views/shared/articles_by/_group_single_goa.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
%tr{class: [cycle('even', 'odd', :name => 'articles'), if goa.result == 0 then 'unavailable' end], id: "goa_#{goa.id}"}
|
||||
%td.name= goa.order_article.article.name
|
||||
%td= goa.order_article.article.unit
|
||||
%td.center= "#{goa.quantity} + #{goa.tolerance}"
|
||||
%td.center.input-delta= (edit or true rescue true) ? group_order_article_edit_result(goa) : goa.result
|
||||
%td.symbol ×
|
||||
%td= number_to_currency(goa.order_article.price.fc_price)
|
||||
%td.symbol =
|
||||
%td.price{data: {value: goa.total_price}}= number_to_currency(goa.total_price)
|
||||
%td= pkg_helper goa.order_article.price
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue