Sha256: 9acb4087b0e7432cd85f4952660542b2136a787aca1b294fcfc33a722d3bbc4d

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

##
# Grouped Inventory Item 是分组库存项。

class Unidom::Inventory::GroupedInventoryItem < Unidom::Inventory::ApplicationRecord

  self.table_name = 'unidom_grouped_inventory_items'

  include Unidom::Common::Concerns::ModelExtension
  include Unidom::Inventory::Concerns::AsInventoryItem

  #validates :quantity, presence: true, numericality: true
  validates :quantity, presence: true, numericality: { greater_than_or_equal_to: 0.0, less_than: 1_000_000_000.00 }

end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::GroupedInventoryItem'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-inventory-1.0.1 app/models/unidom/inventory/grouped_inventory_item.rb