From 7468f87808cee2fad88dd4c9597e7984b3e22878 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 30 May 2024 07:46:10 +0200 Subject: [PATCH] feat(salix): refs #6321 #6321 improve split mehtod --- modules/ticket/back/methods/ticket/split.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ticket/back/methods/ticket/split.js b/modules/ticket/back/methods/ticket/split.js index 69f6f56d9..cd821c019 100644 --- a/modules/ticket/back/methods/ticket/split.js +++ b/modules/ticket/back/methods/ticket/split.js @@ -66,7 +66,8 @@ module.exports = Self => { await Self.transferSales(ctx, tid, vNewTicket, sales, myOptions); await Self.rawSql(`CALL vn.ticket_setState(?, ?)`, [tid, 'FIXING'], myOptions); - results.push({ticket: tid, status: 'split'}); + results.push({ticket: tid, newTicket: vNewTicket, status: 'split'}); + await tx.commit(); } catch ({message}) { results.push({ticket: tid, status: 'error', message}); }