Merge pull request '7161DeleteitemTrash' (!2273) from 7161DeleteitemTrash into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2273 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
aed875743a
|
@ -13,6 +13,7 @@ BEGIN
|
||||||
* @param vQuantity a dar de alta/baja
|
* @param vQuantity a dar de alta/baja
|
||||||
* @param vAddressFk id address
|
* @param vAddressFk id address
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DECLARE vTicketFk INT;
|
DECLARE vTicketFk INT;
|
||||||
DECLARE vClientFk INT;
|
DECLARE vClientFk INT;
|
||||||
DECLARE vDefaultCompanyFk INT;
|
DECLARE vDefaultCompanyFk INT;
|
||||||
|
@ -33,7 +34,7 @@ BEGIN
|
||||||
|
|
||||||
SELECT a.clientFk INTO vClientFk
|
SELECT a.clientFk INTO vClientFk
|
||||||
FROM address a
|
FROM address a
|
||||||
WHERE a.id = vAddressFk;
|
WHERE a.id = vAddressShortage;
|
||||||
|
|
||||||
SELECT t.id INTO vTicketFk
|
SELECT t.id INTO vTicketFk
|
||||||
FROM ticket t
|
FROM ticket t
|
||||||
|
@ -65,7 +66,7 @@ BEGIN
|
||||||
INSERT INTO sale(ticketFk, itemFk, concept, quantity)
|
INSERT INTO sale(ticketFk, itemFk, concept, quantity)
|
||||||
SELECT vTicketFk,
|
SELECT vTicketFk,
|
||||||
vItemFk,
|
vItemFk,
|
||||||
CONCAT(longName,' ', worker_getCode(), ' ', LEFT(CAST(util.VN_NOW() AS TIME),5)),
|
name,
|
||||||
vQuantity
|
vQuantity
|
||||||
FROM item
|
FROM item
|
||||||
WHERE id = vItemFk;
|
WHERE id = vItemFk;
|
||||||
|
|
Loading…
Reference in New Issue