class PreTransfer < ActiveRecord::Base
	belongs_to :product
	belongs_to :warehouse

	validates_presence_of :destiny_id, message: "Debe indicar el destino del traspaso."
	validates_presence_of :product_id, message: "Debe indicar producto a traspasar."
  validates_numericality_of :quantity, greater_than: 0, message: "La cantidad de productos a traspasar debe ser mayor a 0"
end
