mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update customer.rb
This commit is contained in:
1 parent
4ac76a62a2
commit
86cf0b2edd
1 file changed
+2
-2
@@ -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