Change date on qb invoice to close date

This commit is contained in:
Patrick Fic
2021-01-27 16:43:50 -08:00
parent 8863a3b8ac
commit 1c7bf4915c
2 changed files with 2 additions and 1 deletions

View File

@@ -297,7 +297,7 @@ const generateInvoiceQbxml = (jobs_by_pk, bodyshop) => {
? { ClassRef: { FullName: jobs_by_pk.class } }
: {}),
TxnDate: new Date(),
TxnDate: jobs_by_pk.date_closed,
RefNumber: jobs_by_pk.ro_number,
BillAddress: {
Addr1: jobs_by_pk.ownr_addr1,

View File

@@ -46,6 +46,7 @@ query QUERY_JOBS_FOR_RECEIVABLES_EXPORT($ids: [uuid!]!) {
id
job_totals
date_invoiced
date_closed
ro_number
clm_total
clm_no