Reviewed-on: #3351 Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
commit
5ce23ee122
|
@ -16,10 +16,11 @@ BEGIN
|
||||||
TRUE,
|
TRUE,
|
||||||
sc.userFk,
|
sc.userFk,
|
||||||
s.id
|
s.id
|
||||||
FROM vn.sectorCollection sc
|
FROM sectorCollection sc
|
||||||
JOIN vn.sectorCollectionSaleGroup scsg ON scsg.sectorCollectionFk = sc.id
|
JOIN sectorCollectionSaleGroup scsg ON scsg.sectorCollectionFk = sc.id
|
||||||
JOIN vn.saleGroupDetail sgd ON sgd.saleGroupFk = scsg.saleGroupFk
|
JOIN saleGroupDetail sgd ON sgd.saleGroupFk = scsg.saleGroupFk
|
||||||
JOIN vn.state s ON s.code = 'OK PREVIOUS'
|
JOIN state s ON s.code = 'OK PREVIOUS'
|
||||||
|
JOIN itemShelvingSale iss ON iss.saleFk = sgd.saleFk
|
||||||
WHERE sc.id = vSectorCollectionFk;
|
WHERE sc.id = vSectorCollectionFk;
|
||||||
END$$
|
END$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
|
|
Loading…
Reference in New Issue