Merged in hotfix/2022-06-03 (pull request #499)

Resolve AR Account Reference.
This commit is contained in:
Patrick Fic
2022-06-06 18:00:04 +00:00

View File

@@ -249,13 +249,13 @@ const generateInvoiceQbxml = (
)}:${generateJobTier(jobs_by_pk)}`
).trim(),
},
ARAccountRef: {
FullName: bodyshop.md_responsibility_centers.ar.accountname,
},
...(jobs_by_pk.class
? { ClassRef: { FullName: jobs_by_pk.class } }
: {}),
ARAccountRef: {
FullName: bodyshop.md_responsibility_centers.ar.accountname,
},
TxnDate: moment(jobs_by_pk.date_invoiced)
.tz(bodyshop.timezone)
.format("YYYY-MM-DD"),