This commit is contained in:
parent
4b7fa29189
commit
5a40952547
|
@ -1,7 +1,7 @@
|
||||||
SELECT pack.packages,
|
SELECT pack.packages,
|
||||||
a.incotermsFk,
|
a.incotermsFk,
|
||||||
ic.name incotermsName,
|
ic.name incotermsName,
|
||||||
t.weight,
|
wei.weight,
|
||||||
ca.fiscalName customsAgentName,
|
ca.fiscalName customsAgentName,
|
||||||
ca.street customsAgentStreet,
|
ca.street customsAgentStreet,
|
||||||
ca.nif customsAgentNif,
|
ca.nif customsAgentNif,
|
||||||
|
@ -48,5 +48,10 @@ SELECT pack.packages,
|
||||||
FROM ticket
|
FROM ticket
|
||||||
WHERE refFk = ?
|
WHERE refFk = ?
|
||||||
) pack
|
) pack
|
||||||
|
JOIN (
|
||||||
|
SELECT SUM(weight) weight
|
||||||
|
FROM ticket
|
||||||
|
WHERE refFk = ?
|
||||||
|
) wei
|
||||||
WHERE t.refFk = ?
|
WHERE t.refFk = ?
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
|
|
Loading…
Reference in New Issue