HPJI#69018 Verwijderen van een persoon kan ook wanneer deze nog contractmanager is
svn path=/Database/trunk/; revision=56334
This commit is contained in:
@@ -1247,6 +1247,22 @@ AS
|
||||
WHERE cnt_contract_verwijder IS NULL
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND cnt_contract_looptijd_tot > SYSDATE
|
||||
UNION ALL
|
||||
SELECT c.prs_perslid_key_eig,
|
||||
'CNT_CONTRACT_EIG',
|
||||
cnt_contract_nummer_intern ||
|
||||
CASE
|
||||
WHEN c.cnt_contract_versie IS NOT NULL
|
||||
THEN '.' || c.cnt_contract_versie
|
||||
ELSE ''
|
||||
END,
|
||||
c.cnt_contract_key,
|
||||
NULL,
|
||||
'contract'
|
||||
FROM cnt_contract c
|
||||
WHERE cnt_contract_verwijder IS NULL
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND cnt_contract_looptijd_tot > SYSDATE
|
||||
UNION ALL
|
||||
SELECT c.cnt_prs_perslid_key,
|
||||
'CNT_CONTRACT_PARTIJ',
|
||||
@@ -1537,6 +1553,12 @@ AS
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND cnt_contract_looptijd_tot > SYSDATE
|
||||
UNION ALL
|
||||
SELECT c.prs_perslid_key_eig, cnt_contract_key
|
||||
FROM cnt_contract c
|
||||
WHERE cnt_contract_verwijder IS NULL
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND cnt_contract_looptijd_tot > SYSDATE
|
||||
UNION ALL
|
||||
SELECT c.cnt_prs_perslid_key, cnt_contract_key
|
||||
FROM cnt_contract c
|
||||
WHERE cnt_contract_verwijder IS NULL
|
||||
|
||||
Reference in New Issue
Block a user