WIP Exporting Fixes
This commit is contained in:
@@ -29,8 +29,7 @@ exports.default = async (req, res) => {
|
||||
const result = await client
|
||||
.setHeaders({ Authorization: BearerToken })
|
||||
.request(queries.QUERY_JOBS_FOR_RECEIVABLES_EXPORT, { ids: jobIds });
|
||||
const { jobs } = result;
|
||||
const { bodyshops } = result;
|
||||
const { jobs, bodyshops } = result;
|
||||
const QbXmlToExecute = [];
|
||||
|
||||
const bodyshop = bodyshops[0];
|
||||
@@ -119,7 +118,7 @@ const generateSourceCustomerQbxml = (jobs_by_pk, bodyshop) => {
|
||||
|
||||
return customerQbxml_Full;
|
||||
};
|
||||
|
||||
exports.generateSourceCustomerQbxml = generateSourceCustomerQbxml;
|
||||
const generateJobQbxml = (
|
||||
jobs_by_pk,
|
||||
bodyshop,
|
||||
@@ -170,7 +169,7 @@ const generateJobQbxml = (
|
||||
console.log("jobQbxml_Full", jobQbxml_Full);
|
||||
return jobQbxml_Full;
|
||||
};
|
||||
|
||||
exports.generateJobQbxml = generateJobQbxml;
|
||||
const generateInvoiceQbxml = (jobs_by_pk, bodyshop) => {
|
||||
//Build the Invoice XML file.
|
||||
const InvoiceLineAdd = [];
|
||||
|
||||
Reference in New Issue
Block a user