IO-1186 Export customer data.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user