Fixed deliveries.
This commit is contained in:
parent
552c553b77
commit
9af26e1da6
14 changed files with 184 additions and 225 deletions
|
|
@ -1,7 +1,7 @@
|
|||
class StockChange < ActiveRecord::Base
|
||||
belongs_to :delivery
|
||||
belongs_to :order
|
||||
belongs_to :stock_article
|
||||
belongs_to :stock_article, with_deleted: true
|
||||
|
||||
validates_presence_of :stock_article_id, :quantity
|
||||
validates_numericality_of :quantity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue