diff --git a/server/accounting/qbo/qbo-receivables.js b/server/accounting/qbo/qbo-receivables.js index 0fcbb0ce7..c54502428 100644 --- a/server/accounting/qbo/qbo-receivables.js +++ b/server/accounting/qbo/qbo-receivables.js @@ -257,7 +257,6 @@ async function InsertInsuranceCo(oauthClient, qbo_realmId, req, job, bodyshop) { throw new Error( `Insurance Company '${job.ins_co_nm}' not found in shop configuration. Please make sure it exists or change the insurance company name on the job to one that exists.` ); - return; } const Customer = { DisplayName: job.ins_co_nm.trim(), @@ -580,7 +579,7 @@ async function InsertInvoice(oauthClient, qbo_realmId, req, job, bodyshop, paren error, method: "InsertInvoice", validationError: JSON.stringify(error?.response?.data), - accountmeta: JSON.stringify({ accounts, taxCodes, classes }) + accountmeta: JSON.stringify({ items, taxCodes, classes }) }); throw error; }