From 3958ec9189a59d10918a1155c06fe1021149f0ba Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Thu, 12 Sep 2024 15:11:06 -0700 Subject: [PATCH] IO-2927 Correct accountmeta accounts doesn't exist in recievables, switch to items Signed-off-by: Allan Carr --- server/accounting/qbo/qbo-receivables.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }