Merge pull request 'feat: refs #7382 Changes' (!2826) from 7382-invoiceInBooking into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2826 Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
commit
97c1f8b321
|
@ -16,9 +16,11 @@ BEGIN
|
|||
DECLARE vHasRepeatedTransactions BOOL;
|
||||
|
||||
SELECT TRUE INTO vHasRepeatedTransactions
|
||||
FROM invoiceInTax
|
||||
WHERE invoiceInFk = vSelf
|
||||
HAVING COUNT(DISTINCT transactionTypeSageFk) > 1
|
||||
FROM invoiceInTax iit
|
||||
JOIN invoiceIn ii ON ii.id = iit.invoiceInFk
|
||||
WHERE ii.id = vSelf
|
||||
AND ii.serial = 'E'
|
||||
HAVING COUNT(DISTINCT iit.transactionTypeSageFk) > 1
|
||||
LIMIT 1;
|
||||
|
||||
IF vHasRepeatedTransactions THEN
|
||||
|
|
Loading…
Reference in New Issue