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

View File

@@ -15,7 +15,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
<!-- configure the Intuit object: 'grantUrl' is a URL in your application which kicks off the flow, see below -->
<script>
intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '<%= qbo_authenticate_url %>'});
intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '<%= Setting.host_name %>/qbo/authenticate'});
</script>
<table >