This commit is contained in:
parent
d1fb2859be
commit
7fe8698b6f
|
@ -58312,9 +58312,9 @@ BEGIN
|
|||
DECLARE vMaxShipped DATE;
|
||||
DECLARE vDone BOOL;
|
||||
DECLARE vTicketFk INT;
|
||||
DECLARE vCursor CURSOR FOR
|
||||
SELECT id
|
||||
FROM ticketToInvoice;
|
||||
DECLARE vCursor CURSOR FOR
|
||||
SELECT id
|
||||
FROM tmp.ticketToInvoice;
|
||||
|
||||
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
|
||||
|
||||
|
@ -71802,7 +71802,7 @@ BEGIN
|
|||
JOIN ticket t ON t.id = tmpTicket.ticketFk;
|
||||
|
||||
CALL addressTaxArea ();
|
||||
|
||||
|
||||
IF vTaxArea IS NOT NULL THEN
|
||||
UPDATE tmp.addressTaxArea
|
||||
SET areaFk = vTaxArea;
|
||||
|
@ -71874,8 +71874,8 @@ BEGIN
|
|||
CREATE TEMPORARY TABLE tmp.ticketAmount
|
||||
(INDEX (ticketFk))
|
||||
ENGINE = MEMORY
|
||||
SELECT ticketFk,
|
||||
taxableBase,
|
||||
SELECT ticketFk,
|
||||
taxableBase,
|
||||
SUM(CAST(taxableBase * rate / 100 AS DECIMAL(10, 2))) tax,
|
||||
code
|
||||
FROM tmp.ticketTax
|
||||
|
@ -72172,12 +72172,12 @@ proc:BEGIN
|
|||
|
||||
DECLARE hasInvoice BOOL;
|
||||
|
||||
SELECT COUNT(*) INTO hasInvoice
|
||||
FROM ticket
|
||||
SELECT COUNT(*) INTO hasInvoice
|
||||
FROM ticket
|
||||
WHERE id = vSelf
|
||||
AND refFk IS NOT NULL;
|
||||
|
||||
IF hasInvoice THEN
|
||||
|
||||
IF hasInvoice THEN
|
||||
LEAVE proc;
|
||||
END IF;
|
||||
|
||||
|
|
|
@ -178,4 +178,4 @@
|
|||
"Failed to upload delivery note": "Error to upload delivery note {{id}}",
|
||||
"Mail not sent": "There has been an error sending the invoice to the client [{{clientId}}]({{{clientUrl}}}), please check the email address",
|
||||
"The renew period has not been exceeded": "The renew period has not been exceeded"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue