mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_invoice.rb
This commit is contained in:
@@ -68,9 +68,11 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
is_changed = false
|
is_changed = false
|
||||||
|
|
||||||
# Check the private notes
|
# Check the private notes
|
||||||
invoice.private_note.scan(/#(\w+)/).flatten.each { |issue|
|
if notinvoice.private_note.nil?
|
||||||
attach_to_issue(Issue.find_by_id(issue.to_i), invoice)
|
invoice.private_note.scan(/#(\w+)/).flatten.each { |issue|
|
||||||
}
|
attach_to_issue(Issue.find_by_id(issue.to_i), invoice)
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
# Scan the line items for hashtags and attach to the applicable issues
|
# Scan the line items for hashtags and attach to the applicable issues
|
||||||
invoice.line_items.each { |line|
|
invoice.line_items.each { |line|
|
||||||
|
|||||||
Reference in New Issue
Block a user