Actualizar print/templates/reports/invoice-incoterms/sql/incoterms.sql
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c3163df2e8
commit
f437b3285a
|
@ -1,9 +1,9 @@
|
|||
WITH tickets AS(
|
||||
SELECT id, addressFk, packages, refFk
|
||||
SELECT id, addressFk, packages, refFk, weight
|
||||
FROM vn.ticket
|
||||
WHERE refFk = ?
|
||||
), volume AS(
|
||||
SELECT SUM(volume) volume, MAX(weight)weight
|
||||
SELECT SUM(sv.volume) volume, MAX(t.weight)weight
|
||||
FROM tickets t
|
||||
JOIN vn.saleVolume sv ON sv.ticketFk = t.id
|
||||
), intrastat AS(
|
||||
|
|
Loading…
Reference in New Issue