Merged in feature/IO-2927-qbo-usa-gst-itc (pull request #1713)

IO-2927 Correct accountmeta
This commit is contained in:
Allan Carr
2024-09-12 22:23:54 +00:00

View File

@@ -257,7 +257,6 @@ async function InsertInsuranceCo(oauthClient, qbo_realmId, req, job, bodyshop) {
throw new Error( 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.` `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 = { const Customer = {
DisplayName: job.ins_co_nm.trim(), DisplayName: job.ins_co_nm.trim(),
@@ -580,7 +579,7 @@ async function InsertInvoice(oauthClient, qbo_realmId, req, job, bodyshop, paren
error, error,
method: "InsertInvoice", method: "InsertInvoice",
validationError: JSON.stringify(error?.response?.data), validationError: JSON.stringify(error?.response?.data),
accountmeta: JSON.stringify({ accounts, taxCodes, classes }) accountmeta: JSON.stringify({ items, taxCodes, classes })
}); });
throw error; throw error;
} }