fix: refs 197934 add alias #2643
|
@ -12,7 +12,7 @@ SELECT GROUP_CONCAT(DISTINCT ir.description ORDER BY ir.description SEPARATOR '
|
||||||
JOIN vn.sale s ON t.id = s.ticketFk
|
JOIN vn.sale s ON t.id = s.ticketFk
|
||||||
JOIN vn.item i ON i.id = s.itemFk
|
JOIN vn.item i ON i.id = s.itemFk
|
||||||
JOIN vn.intrastat ir ON ir.id = i.intrastatFk
|
JOIN vn.intrastat ir ON ir.id = i.intrastatFk
|
||||||
)SELECT SUM(t.packages),
|
)SELECT SUM(t.packages) packages,
|
||||||
a.incotermsFk,
|
a.incotermsFk,
|
||||||
ic.name incotermsName,
|
ic.name incotermsName,
|
||||||
MAX(t.weight) weight,
|
MAX(t.weight) weight,
|
||||||
|
|
Loading…
Reference in New Issue