Class: PromotionCredit

Inherits:
Adjustment
  • Object
show all
Defined in:
app/models/promotion_credit.rb

Instance Method Summary collapse

Instance Method Details

#applicable?Boolean

Checks if credit is still applicable to order If source of adjustment is credit, it checks if it’s still valid

Returns:

  • (Boolean)


6
7
8
# File 'app/models/promotion_credit.rb', line 6

def applicable?
  source && source.eligible?(order) && super
end