Class: Workarea::Inventory::CollectionStatus::Backordered
- Inherits:
-
Object
- Object
- Workarea::Inventory::CollectionStatus::Backordered
- Includes:
- StatusCalculator::Status
- Defined in:
- app/models/workarea/inventory/collection_status.rb
Instance Method Summary collapse
Methods included from StatusCalculator::Status
Instance Method Details
#in_status? ⇒ Boolean
7 8 9 10 11 |
# File 'app/models/workarea/inventory/collection_status.rb', line 7 def in_status? model.any?(&:allow_backorder?) && model.sum(&:backordered).positive? && model.sum(&:available).zero? end |