From d5e8b4bbc481282d295df2b4cef42e65f1caaa61 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 3 Apr 2017 22:26:53 -0400 Subject: [PATCH] Update qbo_estimate.rb --- app/models/qbo_estimate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/qbo_estimate.rb b/app/models/qbo_estimate.rb index d974e37..7191a44 100644 --- a/app/models/qbo_estimate.rb +++ b/app/models/qbo_estimate.rb @@ -48,7 +48,7 @@ class QboEstimate < ActiveRecord::Base end # process an estimate into the database - def process_estimate(estimate) + def self.process_estimate(estimate) qbo_estimate = find_or_create_by(id: estimate.id) qbo_estimate.doc_number = estimate.doc_number qbo_estimate.customer_id = estimate.customer_ref.value