## # 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'