Update qbo_invoice.rb

This commit is contained in:
2016-09-19 11:06:35 -04:00
committed by GitHub
parent da7ba40e61
commit 21d72dcc33

View File

@@ -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|