mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_customer.rb
This commit is contained in:
@@ -34,17 +34,29 @@ class QboCustomer < ActiveRecord::Base
|
|||||||
|
|
||||||
# returns the customer's email
|
# returns the customer's email
|
||||||
def email
|
def email
|
||||||
return @details.email_address.address if @details
|
begin
|
||||||
|
return @details.email_address.address
|
||||||
|
rescue
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's primary phone
|
# returns the customer's primary phone
|
||||||
def primary_phone
|
def primary_phone
|
||||||
return @details.primary_phone.free_form_number if @details
|
begin
|
||||||
|
return @details.primary_phone.free_form_number
|
||||||
|
rescue
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's mobile phone
|
# returns the customer's mobile phone
|
||||||
def mobile_phone
|
def mobile_phone
|
||||||
return @details.mobile_phone.free_form_number if @details
|
begin
|
||||||
|
return @details.mobile_phone.free_form_number
|
||||||
|
rescue
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's notes
|
# returns the customer's notes
|
||||||
|
|||||||
Reference in New Issue
Block a user