Only show undeleted articles in delivery/stock_taking forms.

Fixed 100.
This commit is contained in:
Benjamin Meichsner 2013-03-23 18:25:54 +01:00
parent 80b203a8da
commit da72d3a61c
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ class StockTakingsController < ApplicationController
def new
@stock_taking = StockTaking.new
StockArticle.all.each { |a| @stock_taking.stock_changes.build(:stock_article => a) }
StockArticle.undeleted.each { |a| @stock_taking.stock_changes.build(:stock_article => a) }
end
def create