Merge pull request 'feat: refs #6372 Added saleLabel to vn.clean' (!2152) from 6372-cleanSaleLabel into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2152 Reviewed-by: David Domenech <davidd@verdnatura.es>
This commit is contained in:
commit
2be79a708f
|
@ -197,6 +197,12 @@ BEGIN
|
|||
FROM ticket t
|
||||
JOIN tTicketDelete tmp ON tmp.ticketFk = t.id;
|
||||
|
||||
DELETE sl
|
||||
FROM saleLabel sl
|
||||
JOIN sale s ON s.id = sl.saleFk
|
||||
JOIN ticket t ON t.id = s.ticketFk
|
||||
WHERE t.shipped < v2Months;
|
||||
|
||||
-- Tickets Nulos PAK 11/10/2016
|
||||
SELECT id INTO vCompanyBlk FROM company WHERE code = 'BLK';
|
||||
UPDATE ticket
|
||||
|
|
Loading…
Reference in New Issue