mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update customer.rb
This commit is contained in:
@@ -20,7 +20,7 @@ class Customer < ActiveRecord::Base
|
|||||||
validates_presence_of :id, :name
|
validates_presence_of :id, :name
|
||||||
|
|
||||||
after_initialize :pull
|
after_initialize :pull
|
||||||
#before_save :push
|
before_save :push
|
||||||
|
|
||||||
self.primary_key = :id
|
self.primary_key = :id
|
||||||
|
|
||||||
@@ -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.iso8601}' " if last
|
query << " Where Metadata.LastUpdatedTime >= '#{last.iso8601}' " if last
|
||||||
query << " Order By DisplayName "
|
query << " Order By DisplayName "
|
||||||
|
|
||||||
without_callback(:save, :before, :save) do
|
without_callback(:save, :before, :save) do
|
||||||
|
|||||||
Reference in New Issue
Block a user