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