From eca5e8241a2025467c508451de9ac7069bcc8503 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 6 May 2022 15:35:34 -0700 Subject: [PATCH 1/2] QBO Bill parent by default. --- server/accounting/qbo/qbo-receivables.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/accounting/qbo/qbo-receivables.js b/server/accounting/qbo/qbo-receivables.js index 108da861a..62047de04 100644 --- a/server/accounting/qbo/qbo-receivables.js +++ b/server/accounting/qbo/qbo-receivables.js @@ -239,6 +239,7 @@ async function InsertInsuranceCo(oauthClient, qbo_realmId, req, job, bodyshop) { const Customer = { DisplayName: job.ins_co_nm, + BillWithParent: true, BillAddr: { City: job.ownr_city, Line1: insCo.street1, @@ -302,6 +303,7 @@ async function InsertOwner( const ownerName = generateOwnerTier(job, true, null); const Customer = { DisplayName: ownerName, + BillWithParent: true, BillAddr: { City: job.ownr_city, Line1: job.ownr_addr1, @@ -362,6 +364,7 @@ exports.QueryJob = QueryJob; async function InsertJob(oauthClient, qbo_realmId, req, job, parentTierRef) { const Customer = { DisplayName: job.ro_number, + BillWithParent: true, BillAddr: { City: job.ownr_city, Line1: job.ownr_addr1, From 6c3d29ba914f353a82430493aaa9d37d34ca57f7 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 6 May 2022 15:50:05 -0700 Subject: [PATCH 2/2] IO-1853 CSV Generation. --- client/src/utils/RenderTemplate.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index 6c5bbba31..5584b3aa4 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -256,8 +256,7 @@ export const GenerateDocument = async ( } else if (sendType === "x") { console.log("excel"); await RenderTemplate(template, bodyshop, false, true); - } else if (sendType === "x") { - console.log("text"); + } else if (sendType === "text") { await RenderTemplate(template, bodyshop, false, false, true); } else { await RenderTemplate(template, bodyshop);