From 932c89f8f9add939bdc83111e11a6a72bebfbfed Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 2 Feb 2022 14:10:11 -0800 Subject: [PATCH] Resolve QBO Receivables incorrectly labels. --- server/accounting/qbo/qbo-receivables.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/server/accounting/qbo/qbo-receivables.js b/server/accounting/qbo/qbo-receivables.js index e2b16c569..fdd63ed7a 100644 --- a/server/accounting/qbo/qbo-receivables.js +++ b/server/accounting/qbo/qbo-receivables.js @@ -438,6 +438,11 @@ async function InsertInvoice( TxnDate: moment(job.date_invoiced).format("YYYY-MM-DD"), DocNumber: job.ro_number, ...(job.class ? { ClassRef: { Id: classes[job.class] } } : {}), + CustomerMemo: { + value: `${job.clm_no ? `Claim No: ${job.clm_no}` : ``}${ + job.po_number ? `PO No: ${job.po_number}` : `` + }`.trim(), + }, CustomerRef: { value: parentTierRef.Id, }, @@ -447,6 +452,18 @@ async function InsertInvoice( ...(bodyshop.accountingconfig.emaillater && job.ownr_ea ? { EmailStatus: "NeedToSend" } : {}), + BillAddr: { + Line3: `${job.ownr_city || ""}, ${job.ownr_st || ""} ${ + job.ownr_zip || "" + }`.trim(), + Line2: job.ownr_addr1 || "", + Line1: `${job.ownr_fn || ""} ${job.ownr_ln || ""} ${ + job.ownr_co_nm || "" + }`, + Long: "-122.1141681", + Lat: "37.4238562", + Id: "95", + }, }; logger.log("qbo-receivable-objectlog", "DEBUG", req.user.email, job.id, {