Second part of stock-integration.
Introduced StockArticle and a special page for ordering from stock. StockChanges will be created and the StockArticle.quantity updated in 'order.close!'.
This commit is contained in:
parent
1912a3fd80
commit
c17b63b192
37 changed files with 616 additions and 340 deletions
|
|
@ -16,10 +16,10 @@
|
|||
%th Artikel
|
||||
%th Einheit
|
||||
%th Menge
|
||||
- for stock_change in @delivery.stock_changes.find :all, :include => :article
|
||||
- for stock_change in @delivery.stock_changes.find :all, :include => :stock_article
|
||||
%tr
|
||||
%td= stock_change.article.name
|
||||
%td= stock_change.article.unit
|
||||
%td= stock_change.stock_article.name
|
||||
%td= stock_change.stock_article.unit
|
||||
%td= stock_change.quantity
|
||||
|
||||
%br/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue