fix: refs #7611 & ticket195937 incoterms #2613

Merged
robert merged 9 commits from 195937-icoterms into master 2024-06-25 05:58:31 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 5a40952547 - Show all commits

View File

@ -1,7 +1,7 @@
SELECT pack.packages,
a.incotermsFk,
ic.name incotermsName,
t.weight,
wei.weight,
robert marked this conversation as resolved Outdated

refFk a pel??

refFk a pel??
ca.fiscalName customsAgentName,
ca.street customsAgentStreet,
ca.nif customsAgentNif,
@ -48,5 +48,10 @@ SELECT pack.packages,
FROM ticket
WHERE refFk = ?
) pack
JOIN (
robert marked this conversation as resolved Outdated

Por que creas otro JOIN si lo puedes añadir en:

        JOIN (
            SELECT SUM(packages) packages
                FROM ticket
                WHERE refFk = ?
        ) pack

Cambiale el nombre al alias

Por que creas otro JOIN si lo puedes añadir en: ``` JOIN ( SELECT SUM(packages) packages FROM ticket WHERE refFk = ? ) pack ``` Cambiale el nombre al alias
SELECT SUM(weight) weight
FROM ticket
WHERE refFk = ?
) wei
WHERE t.refFk = ?
LIMIT 1