mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo_customer.rb
This commit is contained in:
@@ -24,32 +24,32 @@ class QboCustomer < ActiveRecord::Base
|
|||||||
|
|
||||||
# returns true if the customer is active
|
# returns true if the customer is active
|
||||||
def active?
|
def active?
|
||||||
@details.active? if @details
|
return @details.active? if @details
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns a human readable string
|
# returns a human readable string
|
||||||
def to_s
|
def to_s
|
||||||
name
|
return name
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's email
|
# returns the customer's email
|
||||||
def email
|
def email
|
||||||
@details.primary_email_address if @details
|
return @details.primary_email_address if @details
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's primary phone
|
# returns the customer's primary phone
|
||||||
def primary_phone
|
def primary_phone
|
||||||
@details.primary_phone if @details
|
return @details.primary_phone if @details
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's mobile phone
|
# returns the customer's mobile phone
|
||||||
def mobile_phone
|
def mobile_phone
|
||||||
@details.mobile_phone if @details
|
return @details.mobile_phone if @details
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's notes
|
# returns the customer's notes
|
||||||
def notes
|
def notes
|
||||||
@details.notes if @details
|
return @details.notes if @details
|
||||||
end
|
end
|
||||||
|
|
||||||
# updates the customer's notes in QBO
|
# updates the customer's notes in QBO
|
||||||
|
|||||||
Reference in New Issue
Block a user