update txn_date too

This commit is contained in:
2022-02-21 08:51:24 -05:00
parent 19acfbc76f
commit 1344526f7f

View File

@@ -46,6 +46,7 @@ class QboEstimate < ActiveRecord::Base
estimate = get_base.fetch_by_id(id) estimate = get_base.fetch_by_id(id)
qbo_estimate = find_or_create_by(id: id) qbo_estimate = find_or_create_by(id: id)
qbo_estimate.doc_number = estimate.doc_number qbo_estimate.doc_number = estimate.doc_number
qbo_estimate.txn_date = estimate.txn_date
qbo_estimate.save! qbo_estimate.save!
end end