#6321 - Negative tickets #1945

Merged
jsegarra merged 146 commits from 6321_negative_tickets into dev 2025-02-11 08:45:33 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 7468f87808 - Show all commits

View File

@ -66,7 +66,8 @@ module.exports = Self => {
await Self.transferSales(ctx, tid, vNewTicket, sales, myOptions); await Self.transferSales(ctx, tid, vNewTicket, sales, myOptions);
await Self.rawSql(`CALL vn.ticket_setState(?, ?)`, [tid, 'FIXING'], 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}) { } catch ({message}) {
results.push({ticket: tid, status: 'error', message}); results.push({ticket: tid, status: 'error', message});
} }