From 94e8dc745643ac99033b033c8a2a048b21fcbbdc Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 25 Nov 2022 08:40:40 -0800 Subject: [PATCH] IO-2106 Add payment Ref to QBO export. --- server/accounting/qbo/qbo-payments.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/accounting/qbo/qbo-payments.js b/server/accounting/qbo/qbo-payments.js index 8ba87150a..13f15e2a6 100644 --- a/server/accounting/qbo/qbo-payments.js +++ b/server/accounting/qbo/qbo-payments.js @@ -281,6 +281,7 @@ async function InsertPayment( PaymentMethodRef: { value: paymentMethods[payment.type], }, + PaymentRefNum: payment.transactionid, ...(invoices && invoices.length === 1 && invoices[0] ? { Line: [ @@ -473,6 +474,7 @@ async function InsertCreditMemo( ...(invoices && invoices[0] ? { InvoiceRef: { value: invoices[0].Id } } : {}), + PaymentRefNum: payment.transactionid, Line: [ { DetailType: "SalesItemLineDetail",