Class: Workarea::Inventory::CollectionStatus::LowInventory

Inherits:
Object
  • Object
show all
Includes:
StatusCalculator::Status
Defined in:
app/models/workarea/inventory/collection_status.rb

Instance Method Summary collapse

Methods included from StatusCalculator::Status

#initialize

Instance Method Details

#in_status?Boolean

Returns:

  • (Boolean)


17
18
19
20
# File 'app/models/workarea/inventory/collection_status.rb', line 17

def in_status?
  model.purchasable? &&
    !model.purchasable?(Workarea.config.low_inventory_threshold)
end