#7864 - 7864_testToMaster_2434 #2867
|
@ -16,9 +16,11 @@ BEGIN
|
||||||
DECLARE vHasRepeatedTransactions BOOL;
|
DECLARE vHasRepeatedTransactions BOOL;
|
||||||
|
|
||||||
SELECT TRUE INTO vHasRepeatedTransactions
|
SELECT TRUE INTO vHasRepeatedTransactions
|
||||||
FROM invoiceInTax
|
FROM invoiceInTax iit
|
||||||
WHERE invoiceInFk = vSelf
|
JOIN invoiceIn ii ON ii.id = iit.invoiceInFk
|
||||||
HAVING COUNT(DISTINCT transactionTypeSageFk) > 1
|
WHERE ii.id = vSelf
|
||||||
|
AND ii.serial = 'E'
|
||||||
|
HAVING COUNT(DISTINCT iit.transactionTypeSageFk) > 1
|
||||||
LIMIT 1;
|
LIMIT 1;
|
||||||
|
|
||||||
IF vHasRepeatedTransactions THEN
|
IF vHasRepeatedTransactions THEN
|
||||||
|
|
Loading…
Reference in New Issue