Merge pull request 'fix: refs #6861 refs#6861 bySectorCollection' (!2856) from 6861_bySectorCollection into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2856
Reviewed-by: Guillermo Bonet <guillermo@verdnatura.es>
This commit is contained in:
Sergio De la torre 2024-08-13 09:39:31 +00:00
commit 3340ddeccd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ BEGIN
DECLARE vSaleFk INT;
DECLARE vSectorFk INT;
DECLARE vSales CURSOR FOR
SELECT s.id
SELECT DISTINCT s.id
FROM sectorCollectionSaleGroup sc
JOIN saleGroupDetail sg ON sg.saleGroupFk = sc.saleGroupFk
JOIN sale s ON sg.saleFk = s.id