feat: refs #7709 modifcar vPerson por vEntityId
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
980b7aa2cc
commit
e4cd290027
|
@ -10,9 +10,9 @@ BEGIN
|
|||
* @param vFromDated Starting date
|
||||
* @param vSupplierFk Supplier ID
|
||||
*/
|
||||
DECLARE vPerson INT;
|
||||
DECLARE vEntityId INT;
|
||||
|
||||
SELECT id INTO vPerson
|
||||
SELECT id INTO vEntityId
|
||||
FROM supplier
|
||||
WHERE nif = vNif;
|
||||
|
||||
|
@ -106,9 +106,9 @@ BEGIN
|
|||
)sub
|
||||
WHERE `out` OR `in`;
|
||||
|
||||
IF vPerson IS NULL THEN
|
||||
IF vEntityId IS NULL THEN
|
||||
|
||||
SELECT id INTO vPerson
|
||||
SELECT id INTO vEntityId
|
||||
FROM client
|
||||
WHERE fi = vNif;
|
||||
|
||||
|
@ -158,7 +158,7 @@ BEGIN
|
|||
|
||||
END IF;
|
||||
|
||||
SELECT vPerson,
|
||||
SELECT vEntityId,
|
||||
itemFk,
|
||||
longName,
|
||||
name,
|
||||
|
|
Loading…
Reference in New Issue