mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update qbo_invoice.rb
This commit is contained in:
1 parent
a7a5e2c731
commit
504c27c197
1 file changed
+2
@@ -50,6 +50,8 @@ class QboInvoice < ActiveRecord::Base
|
||||
|
||||
# Attach the invoice to the issue
|
||||
def self.attach_to_issue(issue, invoice)
|
||||
return if issue.nil?
|
||||
|
||||
# Load the invoice into the database
|
||||
qbo_invoice = QboInvoice.find_or_create_by(id: invoice.id)
|
||||
qbo_invoice.doc_number = invoice.doc_number
|
||||
|
||||
Reference in new issue
Block a user