From 4b7cf407e8f31cdc64df6d56fa9e433aed531ff4 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 13 Sep 2016 22:57:45 -0400 Subject: [PATCH] Update qbo_invoice.rb --- app/models/qbo_invoice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/qbo_invoice.rb b/app/models/qbo_invoice.rb index dee19e5..32b3173 100644 --- a/app/models/qbo_invoice.rb +++ b/app/models/qbo_invoice.rb @@ -66,7 +66,7 @@ class QboInvoice < ActiveRecord::Base # Attach the invoice to the issue unless i.qbo_invoices.include?(qbo_invoice) i.qbo_invoices << qbo_invoice - i.qbo_invoices.save! + i.save! end # update the invoive custom fields with infomation from the work ticket if available