mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update qbo_invoice.rb
This commit is contained in:
1 parent
49e8f70b46
commit
874d0b4db9
1 file changed
+1
-1
@@ -53,7 +53,7 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
return if issue.nil?
|
return if issue.nil?
|
||||||
|
|
||||||
# skip this issue if the issue customer is not the same as the invoice customer
|
# skip this issue if the issue customer is not the same as the invoice customer
|
||||||
return if issue.customer_id != invoice.customer_ref
|
return if issue.customer_id != invoice.customer_ref.value
|
||||||
|
|
||||||
# Load the invoice into the database
|
# Load the invoice into the database
|
||||||
qbo_invoice = QboInvoice.find_or_create_by(id: invoice.id)
|
qbo_invoice = QboInvoice.find_or_create_by(id: invoice.id)
|
||||||
|
|||||||
Reference in new issue
Block a user