mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -75,21 +75,12 @@ class Customer < ActiveRecord::Base
|
|||||||
@details.mobile_phone = pn
|
@details.mobile_phone = pn
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Updates Both local DB name & QBO display_name
|
||||||
def name=(s)
|
def name=(s)
|
||||||
@details.display_name = s if @details
|
@details.display_name = s if @details
|
||||||
self.name = s
|
self.name = s
|
||||||
end
|
end
|
||||||
|
|
||||||
# returns the customer's notes
|
|
||||||
def notes
|
|
||||||
return @details.notes if @details
|
|
||||||
end
|
|
||||||
|
|
||||||
# updates the customer's notes in QBO
|
|
||||||
def notes=(s)
|
|
||||||
@details.notes = s if @details
|
|
||||||
end
|
|
||||||
|
|
||||||
# Magic Method
|
# Magic Method
|
||||||
def method_missing(name, *arguments)
|
def method_missing(name, *arguments)
|
||||||
value = arguments[0]
|
value = arguments[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user