8448-devToTest #3373

Merged
alexm merged 98 commits from 8448-devToTest into test 2025-01-21 10:00:50 +00:00
1 changed files with 7 additions and 4 deletions
Showing only changes of commit a6799cba0f - Show all commits

View File

@ -105,7 +105,8 @@ BEGIN
clientFk,
dued,
companyFk,
siiTypeInvoiceOutFk
siiTypeInvoiceOutFk,
customsAgentFk
)
SELECT
1,
@ -118,9 +119,11 @@ BEGIN
vCplusCorrectingInvoiceTypeFk,
IF(vSerial = vSimplifiedSerial,
vCplusSimplifiedInvoiceTypeFk,
vCplusStandardInvoiceTypeFk))
FROM client
WHERE id = vClientFk;
vCplusStandardInvoiceTypeFk)),
a.customsAgentFk
FROM client c
JOIN address a ON a.id = c.defaultAddressFk
WHERE c.id = vClientFk;
SET vNewInvoiceId = LAST_INSERT_ID();