IO-256 Export payments with no matching invoice & export cust data.

This commit is contained in:
Patrick Fic
2021-10-14 15:07:31 -07:00
parent 1d210a9e52
commit 161d476ab3
4 changed files with 2588 additions and 55 deletions

View File

@@ -111,7 +111,9 @@ exports.default = async (req, res) => {
);
}
await InsertInvoice(oauthClient, req, job, bodyshop, jobTier);
if (!req.body.custDataOnly) {
await InsertInvoice(oauthClient, req, job, bodyshop, jobTier);
}
ret.push({ jobid: job.id, success: true });
} catch (error) {
ret.push({