Merge branch 'master' into ticket168996-hotfix
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
commit
c190d2bef1
|
@ -15,7 +15,7 @@ BEGIN
|
||||||
FROM `entry`
|
FROM `entry`
|
||||||
WHERE id = vSelf;
|
WHERE id = vSelf;
|
||||||
|
|
||||||
IF vIsBooked THEN
|
IF vIsBooked AND NOT @isModeInventory THEN
|
||||||
CALL util.throw('Entry is already booked');
|
CALL util.throw('Entry is already booked');
|
||||||
END IF;
|
END IF;
|
||||||
END$$
|
END$$
|
||||||
|
|
|
@ -233,8 +233,6 @@ BEGIN
|
||||||
|
|
||||||
UPDATE config SET inventoried = vInventoryDate;
|
UPDATE config SET inventoried = vInventoryDate;
|
||||||
|
|
||||||
SET @isModeInventory := FALSE;
|
|
||||||
|
|
||||||
CREATE OR REPLACE TEMPORARY TABLE tEntryToDelete
|
CREATE OR REPLACE TEMPORARY TABLE tEntryToDelete
|
||||||
(INDEX(entryId)) ENGINE = MEMORY
|
(INDEX(entryId)) ENGINE = MEMORY
|
||||||
SELECT e.id entryId,
|
SELECT e.id entryId,
|
||||||
|
@ -262,6 +260,8 @@ BEGIN
|
||||||
FROM travel t
|
FROM travel t
|
||||||
JOIN tEntryToDelete tmp ON tmp.travelId = t.id;
|
JOIN tEntryToDelete tmp ON tmp.travelId = t.id;
|
||||||
|
|
||||||
|
SET @isModeInventory := FALSE;
|
||||||
|
|
||||||
DROP TEMPORARY TABLE IF EXISTS tEntryToDelete;
|
DROP TEMPORARY TABLE IF EXISTS tEntryToDelete;
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
Loading…
Reference in New Issue