From 5104509106d355176b3fb8d27d5622a747dd1253 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 10 Mar 2016 12:29:21 -0500 Subject: [PATCH] Update qbo_estimate.rb Fixed ID --- app/models/qbo_estimate.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/qbo_estimate.rb b/app/models/qbo_estimate.rb index b30ded6..4977a25 100644 --- a/app/models/qbo_estimate.rb +++ b/app/models/qbo_estimate.rb @@ -25,6 +25,7 @@ class QboEstimate < ActiveRecord::Base estimates.each { |estimate| qbo_estimate = QboEstimate.find_or_create_by(id: estimate.id) qbo_estimate.doc_number = estimate.doc_number + qbo_estimate.id = estimate.id qbo_estimate.save! }