fix: closeTicket idem salix refs #6549 #2163

Merged
carlosap merged 9 commits from 6549-ticket_close into dev 2024-04-08 10:36:22 +00:00
1 changed files with 7 additions and 7 deletions
Showing only changes of commit 1315a854a9 - Show all commits

View File

@ -1,14 +1,14 @@
INSERT INTO util.notification (id, name, description)
SELECT MAX(id) + 1,
'invoice-ticket-closure',
INSERT INTO util.notification ( name, description)
SELECT 'invoice-ticket-closure',
'Tickets not invoiced during the nightly closure ticket process'
FROM util.notification;
carlosap marked this conversation as resolved Outdated
Outdated
Review

Faltava llevar el from, sino fea tants inserts com linies te la taula

Faltava llevar el from, sino fea tants inserts com linies te la taula
SET @notificationFk =LAST_INSERT_ID();
INSERT IGNORE INTO util.notificationAcl (notificationFk, roleFk)
SELECT MAX(id), 108
SELECT @notificationFk, 108
jgallego marked this conversation as resolved Outdated

hacer join con role

hacer join con role
FROM util.notification;
INSERT IGNORE INTO util.notificationSubscription (notificationFk, userFk)
SELECT MAX(id), 108
FROM util.notification;
SELECT @notificationFk, 108
FROM util.notification;