mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customer.rb
This commit is contained in:
@@ -106,7 +106,7 @@ class Customer < ActiveRecord::Base
|
|||||||
last = Qbo.first.last_sync
|
last = Qbo.first.last_sync
|
||||||
|
|
||||||
query = "Select Id, DisplayName From Customer"
|
query = "Select Id, DisplayName From Customer"
|
||||||
query << " Where Metadata.LastUpdatedTime >= '#{last}' " if last
|
#query << " Where Metadata.LastUpdatedTime >= '#{last}' " if last
|
||||||
query << " Order By DisplayName "
|
query << " Order By DisplayName "
|
||||||
|
|
||||||
customers = Qbo.get_base(:customer).service.query_in_batches(query, per_page: 100) do |batch|
|
customers = Qbo.get_base(:customer).service.query_in_batches(query, per_page: 100) do |batch|
|
||||||
|
|||||||
Reference in New Issue
Block a user