Module: Models::RmaTransmittable

Extended by:
ActiveSupport::Concern
Included in:
Order, Rma
Defined in:
app/concerns/models/rma_transmittable.rb

Overview

ActiveSupport::Concern mixin: rma transmittable.

Instance Method Summary collapse

Instance Method Details

#rma_available_email_addressesObject



13
14
15
16
# File 'app/concerns/models/rma_transmittable.rb', line 13

def rma_available_email_addresses
  customer_emails = customer.nil? ? [] : customer.contacts_and_self_contact_points_by_category('email').pluck(:detail)
  ((transmission_email || []) | customer_emails)
end

#rma_available_fax_numbersObject



18
19
20
21
# File 'app/concerns/models/rma_transmittable.rb', line 18

def rma_available_fax_numbers
  customer_faxes = customer.nil? ? [] : customer.contacts_and_self_contact_points_by_category('fax').pluck(:detail)
  ((transmission_fax || []) | customer_faxes)
end