mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update qbo_customer.rb
This commit is contained in:
1 parent
2ce4e8b346
commit
d7f8e51c4a
1 file changed
+3
-3
@@ -34,17 +34,17 @@ class QboCustomer < ActiveRecord::Base
|
||||
|
||||
# returns the customer's email
|
||||
def email
|
||||
return @details.email_address if @details
|
||||
return @details.email_address.address if @details
|
||||
end
|
||||
|
||||
# returns the customer's primary phone
|
||||
def primary_phone
|
||||
return @details.primary_phone.number 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.number if @details
|
||||
return @details.mobile_phone.free_form_number if @details
|
||||
end
|
||||
|
||||
# returns the customer's notes
|
||||
|
||||
Reference in new issue
Block a user