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

This commit is contained in:
Robert Ferrús 2024-06-20 09:34:13 +02:00
parent 4b7fa29189
commit 5a40952547
1 changed files with 6 additions and 1 deletions

View File

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