## # Grouped Inventory Item 是分组库存项。 module Unidom module Inventory class GroupedInventoryItem < ApplicationRecord self.table_name = 'unidom_grouped_inventory_items' include Unidom::Common::Concerns::ModelExtension include Unidom::Inventory::Concerns::AsInventoryItem validates :quantity, presence: true, numericality: { greater_than_or_equal_to: 0.0, less_than_or_equal_to: 1_000_000_000.00 } end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::GroupedInventoryItem' end end