class InventoriesMove < ActiveRecord::Base
	belongs_to :inventory
    belongs_to :product

    belongs_to :purchase
    belongs_to :sale
    belongs_to :transfer
    
    enum move_type: [:incoming, :outgoing]

    enum reason: [:sale, :purchase, :credit_payment, :sale_cancel, :purchase_cancel, 
    	:sale_refund, :waste, :transfer, :sale_expired, :sale_reserved_cancelled]
end
