delete
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2022-12-27 14:17:16 +01:00
parent 7b8a9791b4
commit 4295ae0108
1 changed files with 2 additions and 1 deletions

View File

@ -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);