Sha256: b4d02ec36c1252ae4c3f0723f6a761da829229a62155605e16df0a1cc30549a7

Contents?: true

Size: 402 Bytes

Versions: 122

Compression:

Stored size: 402 Bytes

Contents

module Spree
  class ReturnItem::EligibilityValidator::RMARequired < Spree::ReturnItem::EligibilityValidator::BaseValidator
    def eligible_for_return?
      if @return_item.return_authorization.present?
        true
      else
        add_error(:rma_required, Spree.t('return_item_rma_ineligible'))
        false
      end
    end

    def requires_manual_intervention?
      false
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
spree_core-3.4.6 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.10 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-4.0.3 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-3.7.9 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-4.0.2 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-3.7.8 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-4.0.1 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-3.7.7 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-4.0.0 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-4.0.0.rc3 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-3.7.6 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.5 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-4.0.0.rc2 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-4.0.0.rc1 app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-4.0.0.beta app/models/spree/return_item/eligibility_validator/r_m_a_required.rb
spree_core-3.7.4 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.3 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.2 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.1 app/models/spree/return_item/eligibility_validator/rma_required.rb
spree_core-3.7.0 app/models/spree/return_item/eligibility_validator/rma_required.rb