Update qbo_customer.rb

Fixed ID
This commit is contained in:
2016-03-10 12:27:43 -05:00
parent 37371d2373
commit 897810b029

View File

@@ -29,6 +29,7 @@ class QboCustomer < ActiveRecord::Base
customers.each { |customer| customers.each { |customer|
qbo_customer = QboCustomer.find_or_create_by(id: customer.id) qbo_customer = QboCustomer.find_or_create_by(id: customer.id)
qbo_customer.name = customer.display_name qbo_customer.name = customer.display_name
qbo_customer.id = customer.id
qbo_customer.save! qbo_customer.save!
} }
#remove deleted customers #remove deleted customers