Sha256: 478b64557bf5527ff84aacab91817905f70679c15403997428b70fc2d5668f83

Contents?: true

Size: 590 Bytes

Versions: 3

Compression:

Stored size: 590 Bytes

Contents

# Item Issuing 是条目出库。
# #pick_item 是出库项。
# #inventory_item 是库存项,可以由 #pick_item 导出。
# #target_item 是目标项,比如: ShipmentItem 、 OrderItem 等。

class Unidom::Inventory::ItemIssuing < ActiveRecord::Base

  self.table_name = 'unidom_item_issuings'

  include Unidom::Common::Concerns::ModelExtension

  validates :quantity, presence: true, numericality: true

  belongs_to :pick_item,      class_name:  'Unidom::Inventory::PickItem'
  belongs_to :inventory_item, polymorphic: true
  belongs_to :target_item,    polymorphic: true

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unidom-inventory-0.7 app/models/unidom/inventory/item_issuing.rb
unidom-inventory-0.6 app/models/unidom/inventory/item_issuing.rb
unidom-inventory-0.5 app/models/unidom/inventory/item_issuing.rb