diff --git a/app/models/qbo_invoice.rb b/app/models/qbo_invoice.rb index a1af7f0..651c789 100644 --- a/app/models/qbo_invoice.rb +++ b/app/models/qbo_invoice.rb @@ -53,7 +53,7 @@ class QboInvoice < ActiveRecord::Base return if issue.nil? # skip this issue if the issue customer is not the same as the invoice customer - return if issue.customer_id != invoice.customer_ref + return if issue.customer_id != invoice.customer_ref.value # Load the invoice into the database qbo_invoice = QboInvoice.find_or_create_by(id: invoice.id)