Update qbo_customer.rb

This commit is contained in:
2016-04-28 09:08:13 -04:00
parent 95c39fb9c5
commit 198e2d5934

View File

@@ -103,7 +103,7 @@ class QboCustomer < ActiveRecord::Base
# update's the customers name if updated
def update
if not self.name == @detils.display_name
if @details and not self.name == @detils.display_name
self.name = @details.display_name
self.save
end