Update customer.rb

This commit is contained in:
2016-05-17 12:40:53 -04:00
parent 0bb97a4e37
commit 8cf39301bd

View File

@@ -106,9 +106,9 @@ class Customer < ActiveRecord::Base
last = Qbo.first.last_sync
query = "SELECT Id, DisplayName FROM Customer"
#query << " WHERE Metadata.LastUpdatedTime>'#{last}' " if last
query << " WHERE Metadata.LastUpdatedTime>'#{last}' " if last
customers = Qbo.get_base(:customer).service.query()
customers = Qbo.get_base(:customer).service.query(query)
# Update the customer table
customers.each { |customer|