Merge pull request 'lines and volume' (!2233) from hotfix-collection_new_20240401 into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2233 Reviewed-by: Juan Ferrer <juan@verdnatura.es>
This commit is contained in:
commit
3ac0af24d1
|
@ -219,9 +219,11 @@ proc:BEGIN
|
||||||
UPDATE tmp.productionBuffer pb
|
UPDATE tmp.productionBuffer pb
|
||||||
JOIN (
|
JOIN (
|
||||||
SELECT SUM(litros) liters,
|
SELECT SUM(litros) liters,
|
||||||
@lines:= COUNT(*) + @lines `lines`,
|
@lines:= COUNT(*) + @lines,
|
||||||
|
COUNT(*) `lines`,
|
||||||
MAX(i.`size`) height,
|
MAX(i.`size`) height,
|
||||||
@volume := SUM(sv.volume) + @volume volume
|
@volume := SUM(sv.volume) + @volume,
|
||||||
|
SUM(sv.volume) volume
|
||||||
FROM saleVolume sv
|
FROM saleVolume sv
|
||||||
JOIN sale s ON s.id = sv.saleFk
|
JOIN sale s ON s.id = sv.saleFk
|
||||||
JOIN item i ON i.id = s.itemFk
|
JOIN item i ON i.id = s.itemFk
|
||||||
|
|
Loading…
Reference in New Issue