Use host name from settings for auth & added exception handing in QboInvoice

This commit is contained in:
2022-02-06 16:37:00 -05:00
parent 7cc8a946fd
commit b1192a1912
2 changed files with 6 additions and 2 deletions

View File

@@ -149,7 +149,11 @@ class QboInvoice < ActiveRecord::Base
# Push updates
#invoice.sync_token += 1 if is_changed
get_base.update(invoice) if is_changed
begin
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
end
end