fix: refs #195937 changes requerid
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-06-20 11:04:42 +02:00
parent 5a40952547
commit 46792ba30e
1 changed files with 4 additions and 9 deletions

View File

@ -1,7 +1,7 @@
SELECT pack.packages,
SELECT calc.packages,
a.incotermsFk,
ic.name incotermsName,
wei.weight,
calc.weight,
ca.fiscalName customsAgentName,
ca.street customsAgentStreet,
ca.nif customsAgentNif,
@ -44,14 +44,9 @@ SELECT pack.packages,
WHERE t.refFk = ?
) intr
JOIN (
SELECT SUM(packages) packages
SELECT SUM(packages) packages, SUM(weight) weight
FROM ticket
WHERE refFk = ?
) pack
JOIN (
SELECT SUM(weight) weight
FROM ticket
WHERE refFk = ?
) wei
) calc
WHERE t.refFk = ?
LIMIT 1