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:
@@ -55,9 +55,9 @@ class QboInvoice < ActiveRecord::Base
|
||||
|
||||
# Scan the line items for hashtags and attach to the applicable issues
|
||||
if invoice.line_items
|
||||
invoice.line_items.each |line_item| do
|
||||
invoice.line_items |line_item| do
|
||||
if line_item.description
|
||||
line_item.description.scan(/#(\w+)/).flatten.each |issue| do
|
||||
line_item.description.scan(/#(\w+)/).flatten |issue| do
|
||||
i = issue.find_by_id(issue.to_i)
|
||||
if i
|
||||
i.qbo_invoice = issue.to_i
|
||||
|
||||
Reference in New Issue
Block a user