Class: Workarea::Fulfillment::Status::Refunded
- Inherits:
-
Object
- Object
- Workarea::Fulfillment::Status::Refunded
- Includes:
- StatusCalculator::Status
- Defined in:
- app/models/workarea/fulfillment/status/refunded.rb
Instance Method Summary collapse
Instance Method Details
#in_status? ⇒ Boolean
7 8 9 10 11 |
# File 'app/models/workarea/fulfillment/status/refunded.rb', line 7 def in_status? # Need some items in the fulfillment order.items.any? && order.items.all? { |i| i.quantity_refunded >= i.quantity } end |