Update qbo_customer.rb

This commit is contained in:
2016-04-28 10:20:41 -04:00
parent 2ce4e8b346
commit d7f8e51c4a

View File

@@ -34,17 +34,17 @@ class QboCustomer < ActiveRecord::Base
# returns the customer's email # returns the customer's email
def email def email
return @details.email_address if @details return @details.email_address.address if @details
end end
# returns the customer's primary phone # returns the customer's primary phone
def primary_phone def primary_phone
return @details.primary_phone.number if @details return @details.primary_phone.free_form_number if @details
end end
# returns the customer's mobile phone # returns the customer's mobile phone
def mobile_phone def mobile_phone
return @details.mobile_phone.number if @details return @details.mobile_phone.free_form_number if @details
end end
# returns the customer's notes # returns the customer's notes