Order refactoring part two: Balancing workflow was adapted to the new order schema. Article modification is still missing.
This commit is contained in:
parent
9eb2125f15
commit
190a777278
53 changed files with 568 additions and 603 deletions
18
app/views/finance/balancing/_order_article.html.haml
Normal file
18
app/views/finance/balancing/_order_article.html.haml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
%td.closed
|
||||
= link_to_function order_article.article.name, |
|
||||
"Element.toggle('group_order_articles_#{order_article.id}'); |
|
||||
Element.toggleClassName(this.up('td'), 'open')" |
|
||||
%td= order_article.article.order_number
|
||||
%td= order_article.units_to_order
|
||||
%td= order_article.price.unit_quantity.to_s + ' * ' + order_article.article.unit.to_s
|
||||
%td= number_to_currency(order_article.price.price, :unit => "")
|
||||
%td= number_to_currency(order_article.price.fc_price, :unit => "")
|
||||
%td= order_article.price.tax
|
||||
%td= order_article.price.deposit
|
||||
%td
|
||||
//= remote_link_to icon(:edit), |
|
||||
//:url => {:action => 'edit_order_article', :id => order_article} |
|
||||
%td
|
||||
= remote_link_to icon(:delete), :confirm => 'Bist du sicher?', |
|
||||
:url => {:action => 'destroy_order_article', :id => order_article}, |
|
||||
:method => :post |
|
||||
Loading…
Add table
Add a link
Reference in a new issue