Update qbo_customer.rb

This commit is contained in:
2016-04-28 09:59:45 -04:00
parent e400a7cee3
commit 1103355cb7

View File

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