fix: refs #7611 & ticket195937 incoterms #2613
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue