From a2f755388e5c9f783597fa66dc86e902d72ce310 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 13 Feb 2022 12:34:03 -0500 Subject: [PATCH] Fixed merge error --- app/models/qbo_invoice.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/models/qbo_invoice.rb b/app/models/qbo_invoice.rb index 0f23906..9b4162b 100644 --- a/app/models/qbo_invoice.rb +++ b/app/models/qbo_invoice.rb @@ -156,16 +156,11 @@ class QboInvoice < ActiveRecord::Base # Push updates #invoice.sync_token += 1 if is_changed begin + logger.debug "Trying to update invoice" get_base.update(invoice) if is_changed rescue # Do nothing, probaly too many vehicles on the invoice. This is a problem with how it's billed # TODO Add notes in memo area - if is_changed - logger.debug "Trying to update invoice" - get_base.update(invoice) if is_changed - end - rescue - #do nothing logger.fatal "Failed to update invoice" end end