From 55513b5af1b37fc2a0ae66e57d57189cf7e67ac5 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 10 Feb 2021 08:15:03 -0800 Subject: [PATCH] Missed in last commit --- server/accounting/qbxml/qbxml-receivables.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/accounting/qbxml/qbxml-receivables.js b/server/accounting/qbxml/qbxml-receivables.js index f6e8f4841..a3711c1bf 100644 --- a/server/accounting/qbxml/qbxml-receivables.js +++ b/server/accounting/qbxml/qbxml-receivables.js @@ -5,6 +5,7 @@ const queries = require("../../graphql-client/queries"); const Dinero = require("dinero.js"); var builder = require("xmlbuilder"); const QbXmlUtils = require("./qbxml-utils"); +import moment from "moment"; require("dotenv").config({ path: path.resolve( process.cwd(), @@ -297,7 +298,7 @@ const generateInvoiceQbxml = (jobs_by_pk, bodyshop) => { ? { ClassRef: { FullName: jobs_by_pk.class } } : {}), - TxnDate: jobs_by_pk.date_invoiced, + TxnDate: moment(jobs_by_pk.date_invoiced).format("YYYY-MM-DD"), RefNumber: jobs_by_pk.ro_number, BillAddress: { Addr1: jobs_by_pk.ownr_addr1,