Class: Workarea::Fulfillment::Status::PartiallyRefunded

Inherits:
Object
  • Object
show all
Includes:
StatusCalculator::Status
Defined in:
app/models/workarea/fulfillment/status/partially_refunded.rb

Instance Method Summary collapse

Instance Method Details

#in_status?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/models/workarea/fulfillment/status/partially_refunded.rb', line 7

def in_status?
  order.items.any? { |i| i.quantity_refunded >= i.quantity }
end