This commit is contained in:
parent
5a40952547
commit
46792ba30e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue