Fixed merge error

This commit is contained in:
2022-02-13 12:34:03 -05:00
parent 8a8f1af2bd
commit a2f755388e

View File

@@ -156,16 +156,11 @@ class QboInvoice < ActiveRecord::Base
# Push updates # Push updates
#invoice.sync_token += 1 if is_changed #invoice.sync_token += 1 if is_changed
begin begin
logger.debug "Trying to update invoice"
get_base.update(invoice) if is_changed get_base.update(invoice) if is_changed
rescue rescue
# Do nothing, probaly too many vehicles on the invoice. This is a problem with how it's billed # Do nothing, probaly too many vehicles on the invoice. This is a problem with how it's billed
# TODO Add notes in memo area # 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" logger.fatal "Failed to update invoice"
end end
end end