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:
@@ -103,10 +103,14 @@ class QboCustomer < ActiveRecord::Base
|
|||||||
|
|
||||||
# update's the customers name if updated
|
# update's the customers name if updated
|
||||||
def update
|
def update
|
||||||
if @details and not self.name == @detils.display_name
|
begin
|
||||||
|
if not self.name == @detils.display_name
|
||||||
self.name = @details.display_name
|
self.name = @details.display_name
|
||||||
self.save
|
self.save
|
||||||
end
|
end
|
||||||
|
rescue
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user