UWVA#65182 Bewaartermijnen/automatische schoning in core

svn path=/Database/trunk/; revision=52228
This commit is contained in:
Erik Groener
2021-07-06 12:49:28 +00:00
parent 81dc3a0e73
commit 85c39e550b

View File

@@ -2169,9 +2169,11 @@ AS
OR bes_bestelling_parentkey = p_bestelling_key;
CURSOR c_opdracht(p_bestelling_key IN NUMBER) IS
SELECT bes_bestelopdr_key
FROM bes_bestelopdr
WHERE TO_NUMBER(SUBSTR(bes_bestelopdr_id, 1, INSTR(bes_bestelopdr_id, '/', 1)-1)) = p_bestelling_key;
SELECT DISTINCT oi.bes_bestelopdr_key
FROM bes_bestelling_item bi
, bes_bestelopdr_item oi
WHERE bi.bes_bestelopdr_item_key = oi.bes_bestelopdr_item_key
AND bi.bes_bestelling_key = p_bestelling_key;
CURSOR c_bijlagen(p_refkey IN NUMBER) IS
SELECT b.fac_bijlagen_key