Refactored communication with partner app to use custom objects + error handling BOD-83 BOD-138 BOD-139
This commit is contained in:
@@ -32,7 +32,11 @@ exports.default = async (req, res) => {
|
||||
|
||||
const QbXmlToExecute = [];
|
||||
invoices.map((i) => {
|
||||
QbXmlToExecute.push(generateBill(i));
|
||||
QbXmlToExecute.push({
|
||||
id: i.id,
|
||||
okStatusCodes: ["0"],
|
||||
qbxml: generateBill(i),
|
||||
});
|
||||
});
|
||||
|
||||
//For each invoice.
|
||||
|
||||
Reference in New Issue
Block a user