Update qbo_invoice.rb

This commit is contained in:
2016-09-26 16:33:56 -04:00
committed by GitHub
parent 6aae155933
commit fb40833abd

View File

@@ -65,6 +65,8 @@ class QboInvoice < ActiveRecord::Base
issue.qbo_invoices << qbo_invoice
issue.save!
end
compare_custom_fields(issue, invoice)
end
# processes the invoice into the system
@@ -87,7 +89,9 @@ class QboInvoice < ActiveRecord::Base
}
end
}
end
def self.compare_custom_fields(issue, invoice)
# update the invoive custom fields with infomation from the work ticket if available
invoice.custom_fields.each { |cf|