Add StockChanges index

This commit is contained in:
Julius 2013-07-09 21:46:04 +02:00
parent d397132f7b
commit ef62a18ac9
9 changed files with 59 additions and 1 deletions

View file

@ -1,6 +1,7 @@
class StockChange < ActiveRecord::Base
belongs_to :delivery
belongs_to :order
belongs_to :stock_taking
belongs_to :stock_article
validates_presence_of :stock_article_id, :quantity