mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -106,9 +106,9 @@ 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
|
||||||
|
|
||||||
customers = Qbo.get_base(:customer).service.query()
|
customers = Qbo.get_base(:customer).service.query(query)
|
||||||
|
|
||||||
# Update the customer table
|
# Update the customer table
|
||||||
customers.each { |customer|
|
customers.each { |customer|
|
||||||
|
|||||||
Reference in New Issue
Block a user