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
116d6896f4
commit
382e6675f1
1 file changed
+1
-1
@@ -57,7 +57,7 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
invoice.line_items.each { |line|
|
invoice.line_items.each { |line|
|
||||||
line.description.scan(/#(\w+)/).flatten.each { |issue|
|
line.description.scan(/#(\w+)/).flatten.each { |issue|
|
||||||
i = Issue.find_by_id(issue.to_i)
|
i = Issue.find_by_id(issue.to_i)
|
||||||
i.qbo_invoice = invoice.id.to_i
|
i.qbo_invoice = QboInvoice.find_by_id(invoice.id.to_i)
|
||||||
i.save!
|
i.save!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user