Merge pull request 'refs #6312 hotFix fix:replaceItem' (!2367) from 6312_originalQuanitty into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2367
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Sergio De la torre 2024-04-25 07:10:50 +00:00
commit 8ad61026ea
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ BEGIN
START TRANSACTION;
UPDATE sale
SET quantity = quantity - vQuantity
SET originalQuantity = quantity - vQuantity,
quantity = quantity - vQuantity
WHERE id = vSaleFk;
INSERT INTO vn.sale(ticketFk,