Only show undeleted articles in delivery/stock_taking forms.
Fixed 100.
This commit is contained in:
parent
80b203a8da
commit
da72d3a61c
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue