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 13 additions and 14 deletions
Showing only changes of commit cedfdbb421 - Show all commits

View File

@ -1,16 +1,15 @@
INSERT INTO util.notification ( name, description)
SELECT 'invoice-ticket-closure',
'Tickets not invoiced during the nightly closure ticket process'
FROM util.notification;
SET @notificationFk =LAST_INSERT_ID();
INSERT INTO util.notification ( name, description)
SELECT 'invoice-ticket-closure',
'Tickets not invoiced during the nightly closure ticket process';
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 @notificationFk,id
FROM account.role
WHERE name ='administrative';
INSERT IGNORE INTO util.notificationAcl (notificationFk, roleFk)
SELECT @notificationFk,id
FROM account.role
jgallego marked this conversation as resolved Outdated

hacer join con role

hacer join con role
WHERE name ='administrative';
INSERT IGNORE INTO util.notificationSubscription (notificationFk, userFk)
SELECT @notificationFk, id
FROM account.`user`
WHERE `name` = 'admon';
INSERT IGNORE INTO util.notificationSubscription (notificationFk, userFk)
SELECT @notificationFk, id
FROM account.`user`
WHERE `name` = 'admon';