Merge pull request '#6889 set originalQuantity to 0' (!2391) from 6889-hotfix-resetOriginalQuantity into master
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2391
Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
Alex Moreno 2024-05-02 10:07:28 +00:00
commit 0b2606096f
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ BEGIN
SELECT LAST_INSERT_ID() INTO vSaleFk; SELECT LAST_INSERT_ID() INTO vSaleFk;
UPDATE sale
SET originalQuantity = 0
WHERE id = vSaleFk;
CALL sale_calculateComponent(vSaleFk, NULL); CALL sale_calculateComponent(vSaleFk, NULL);
END$$ END$$
DELIMITER ; DELIMITER ;