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