Class: Workarea::Payment::Status::PartiallyCaptured
- Inherits:
-
Object
- Object
- Workarea::Payment::Status::PartiallyCaptured
- Includes:
- StatusCalculator::Status
- Defined in:
- app/models/workarea/payment/status.rb
Instance Method Summary collapse
Methods included from StatusCalculator::Status
Instance Method Details
#in_status? ⇒ Boolean
45 46 47 48 49 50 |
# File 'app/models/workarea/payment/status.rb', line 45 def in_status? order.tenders.any? do |tender| tender.captured_amount > 0 && tender.refunded_amount == 0 end end |