fix: acls #2999
|
@ -17,7 +17,7 @@ BEGIN
|
||||||
DECLARE vTicketLines INT;
|
DECLARE vTicketLines INT;
|
||||||
|
|
||||||
WITH ticketData AS(
|
WITH ticketData AS(
|
||||||
SELECT s.ticketFk
|
SELECT DISTINCT s.ticketFk
|
||||||
FROM vn.saleGroupDetail sgd
|
FROM vn.saleGroupDetail sgd
|
||||||
JOIN vn.sale s ON s.id = sgd.saleFk
|
JOIN vn.sale s ON s.id = sgd.saleFk
|
||||||
WHERE sgd.saleGroupFk = vSaleGroupFk
|
WHERE sgd.saleGroupFk = vSaleGroupFk
|
||||||
|
|
Loading…
Reference in New Issue