mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update qbo_invoice.rb
This commit is contained in:
@@ -65,6 +65,8 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
issue.qbo_invoices << qbo_invoice
|
issue.qbo_invoices << qbo_invoice
|
||||||
issue.save!
|
issue.save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
compare_custom_fields(issue, invoice)
|
||||||
end
|
end
|
||||||
|
|
||||||
# processes the invoice into the system
|
# processes the invoice into the system
|
||||||
@@ -87,7 +89,9 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.compare_custom_fields(issue, invoice)
|
||||||
# update the invoive custom fields with infomation from the work ticket if available
|
# update the invoive custom fields with infomation from the work ticket if available
|
||||||
invoice.custom_fields.each { |cf|
|
invoice.custom_fields.each { |cf|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user