From 1344526f7f22432ecc59d14b154a2649c0da23b3 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 21 Feb 2022 08:51:24 -0500 Subject: [PATCH] update txn_date too --- 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 4bb370a..0070272 100644 --- a/app/models/qbo_estimate.rb +++ b/app/models/qbo_estimate.rb @@ -46,6 +46,7 @@ class QboEstimate < ActiveRecord::Base estimate = get_base.fetch_by_id(id) qbo_estimate = find_or_create_by(id: id) qbo_estimate.doc_number = estimate.doc_number + qbo_estimate.txn_date = estimate.txn_date qbo_estimate.save! end