mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_item.rb
This commit is contained in:
@@ -23,7 +23,7 @@ class QboItem < ActiveRecord::Base
|
||||
last = Qbo.first.last_sync
|
||||
|
||||
query = "SELECT Id, Name FROM Item"
|
||||
query << " WHERE Metadata.LastUpdatedTime>'#{last}' " if last
|
||||
query << " WHERE Metadata.LastUpdatedTime > '#{last}' AND Type = 'Service'" if last
|
||||
|
||||
items = get_base.service.query()
|
||||
transaction do
|
||||
|
||||
Reference in New Issue
Block a user