#7709 -supplierPackaging_ReportSource_2 #3107
|
@ -10,9 +10,9 @@ BEGIN
|
|||
* @param vFromDated Starting date
|
||||
robert marked this conversation as resolved
Outdated
|
||||
* @param vSupplierFk Supplier ID
|
||||
*/
|
||||
DECLARE vPerson INT;
|
||||
DECLARE vEntityId INT;
|
||||
robert marked this conversation as resolved
Outdated
carlosap
commented
vPerson no és correcte, les empreses no son persones vClientOrSupplierId vPerson no és correcte, les empreses no son persones
vClientOrSupplierId
vEntityId
|
||||
|
||||
SELECT id INTO vPerson
|
||||
SELECT id INTO vEntityId
|
||||
robert marked this conversation as resolved
Outdated
carlosap
commented
los supplier no son users los supplier no son users
|
||||
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
espacios en los comentarios *