c17b63b192
Introduced StockArticle and a special page for ordering from stock. StockChanges will be created and the StockArticle.quantity updated in 'order.close!'.
27 lines
827 B
Text
27 lines
827 B
Text
- title "Neue Lieferung von #{@supplier.name}"
|
|
|
|
.left_column
|
|
- form_for([@supplier,@delivery]) do |f|
|
|
.box_title
|
|
%h2 Lieferung anlegen
|
|
.column_content
|
|
= f.error_messages
|
|
= f.hidden_field :supplier_id
|
|
%p
|
|
%b= f.label :delivered_on
|
|
= f.date_select :delivered_on
|
|
%h2 Lagerartikel des Lieferanten
|
|
#stock_changes
|
|
= render :partial => 'stock_change', :collection => @delivery.stock_changes
|
|
%p
|
|
= f.submit "Lieferung anlegen"
|
|
|
|
.right_column{:style => "width:35em;"}
|
|
.box_title
|
|
%h2 Neuen Lagerartikel anlegen
|
|
.column_content
|
|
#new_stock_article
|
|
= render :partial => 'new_stock_article', :locals => {:stock_article => @supplier.stock_articles.build}
|
|
|
|
%p{:style => "clear:both"}
|
|
= link_to 'Zurück', supplier_deliveries_path(@supplier)
|