mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update qbo_purchase.rb
This commit is contained in:
1 parent
56a3b2cffb
commit
0d6240c089
1 file changed
+2
-2
@@ -19,11 +19,11 @@ class QboPurchase < ActiveRecord::Base
|
|||||||
Qbo.get_base(:purchase)
|
Qbo.get_base(:purchase)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get_purchase(id)
|
def get_purchase(id)
|
||||||
get_base.service.find_by_id(id)
|
get_base.service.find_by_id(id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync
|
def self.sync
|
||||||
QboPurchase.get_base.service.all.each { |purchase|
|
QboPurchase.get_base.service.all.each { |purchase|
|
||||||
|
|
||||||
purchase.line_items.all? { |line_item|
|
purchase.line_items.all? { |line_item|
|
||||||
|
|||||||
Reference in new issue
Block a user