IO-1186 Export customer data.

This commit is contained in:
Patrick Fic
2021-06-21 09:11:28 -07:00
parent 69ac8617da
commit 1f59d114e8
9 changed files with 151 additions and 14 deletions

View File

@@ -75,17 +75,20 @@ exports.default = async (req, res) => {
twoTierPref
),
});
//Generate the actual invoice.
QbXmlToExecute.push({
id: jobs_by_pk.id,
okStatusCodes: ["0"],
qbxml: generateInvoiceQbxml(
jobs_by_pk,
bodyshop,
isThreeTier,
twoTierPref
),
});
if (!req.body.custDataOnly) {
//Generate the actual invoice.
QbXmlToExecute.push({
id: jobs_by_pk.id,
okStatusCodes: ["0"],
qbxml: generateInvoiceQbxml(
jobs_by_pk,
bodyshop,
isThreeTier,
twoTierPref
),
});
}
});
res.status(200).json(QbXmlToExecute);