Added classes to receivable export.

This commit is contained in:
Patrick Fic
2020-09-16 14:47:17 -07:00
parent 0185a0ab93
commit 3c053c4f9c
2 changed files with 6 additions and 0 deletions

View File

@@ -292,6 +292,11 @@ const generateInvoiceQbxml = (jobs_by_pk, bodyshop) => {
jobs_by_pk
)}`,
},
...(jobs_by_pk.class
? { ClassRef: { FullName: jobs_by_pk.class } }
: {}),
TxnDate: new Date(),
RefNumber: jobs_by_pk.ro_number,
BillAddress: {

View File

@@ -83,6 +83,7 @@ query QUERY_JOBS_FOR_RECEIVABLES_EXPORT($ids: [uuid!]!) {
rate_mapa
rate_mash
rate_matd
class
owner {
accountingid
}