From 4295ae010834b6c9745b95c262ecdf4fc6823738 Mon Sep 17 00:00:00 2001 From: vicent Date: Tue, 27 Dec 2022 14:17:16 +0100 Subject: [PATCH] delete --- modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js index 72bdb3ec7..53e1023ba 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js +++ b/modules/invoiceOut/back/methods/invoiceOut/invoiceClient.js @@ -105,8 +105,9 @@ module.exports = Self => { serialLetter, args.invoiceDate ], myOptions); - if (client.id == 1102) + if (client.id == 1101 && args.addressId == 121) throw new Error('Error1'); + const [newInvoice] = await Self.rawSql(`SELECT @invoiceId id`, null, myOptions); if (newInvoice.id) { await Self.rawSql('CALL invoiceOutBooking(?)', [newInvoice.id], myOptions);