feat: refs #7709 modifcar vPerson por vEntityId
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-10-18 10:34:53 +02:00
parent 980b7aa2cc
commit e4cd290027
1 changed files with 5 additions and 5 deletions

View File

@ -10,9 +10,9 @@ BEGIN
* @param vFromDated Starting date * @param vFromDated Starting date
* @param vSupplierFk Supplier ID * @param vSupplierFk Supplier ID
*/ */
DECLARE vPerson INT; DECLARE vEntityId INT;
SELECT id INTO vPerson SELECT id INTO vEntityId
FROM supplier FROM supplier
WHERE nif = vNif; WHERE nif = vNif;
@ -106,9 +106,9 @@ BEGIN
)sub )sub
WHERE `out` OR `in`; WHERE `out` OR `in`;
IF vPerson IS NULL THEN IF vEntityId IS NULL THEN
SELECT id INTO vPerson SELECT id INTO vEntityId
FROM client FROM client
WHERE fi = vNif; WHERE fi = vNif;
@ -158,7 +158,7 @@ BEGIN
END IF; END IF;
SELECT vPerson, SELECT vEntityId,
itemFk, itemFk,
longName, longName,
name, name,