mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 10:30:36 -05:00
Update qbo_invoice.rb
This commit is contained in:
1 parent
bfb6d3bc4e
commit
3e5008aeb2
1 file changed
+4
-2
@@ -27,9 +27,11 @@ class QboInvoice < ActiveRecord::Base
|
||||
query = "SELECT Id, DocNumber FROM Invoice"
|
||||
query << " WHERE Metadata.LastUpdatedTime >= '#{last.iso8601}' " if last
|
||||
|
||||
if count == 0
|
||||
invoices = get_base.service.all
|
||||
else
|
||||
invoices = get_base.service.query()
|
||||
|
||||
invoices = get_base.service.all if count == 0
|
||||
end
|
||||
|
||||
# Update the invoice table
|
||||
invoices.each { | invoice |
|
||||
|
||||
Reference in new issue
Block a user