MDUX#73225 Rappels sturen naar vastgoed@medux.nl
svn path=/Customer/trunk/; revision=56813
This commit is contained in:
@@ -2328,23 +2328,67 @@ SELECT
|
||||
CREATE OR REPLACE VIEW mdux_v_noti_cntreminder
|
||||
(code, sender, receiver, text, key, par1, par2, xkey, xemail, xmobile)
|
||||
AS
|
||||
SELECT '', '', c.prs_perslid_key_beh,
|
||||
'Rapp<EFBFBD>l: Contract '
|
||||
|| c.cnt_contract_nummer_intern||DECODE(cnt_contract_versie, NULL, '', '.'||cnt_contract_versie)
|
||||
|| ' ('
|
||||
|| c.cnt_contract_omschrijving
|
||||
|| ' '
|
||||
|| b.prs_bedrijf_naam
|
||||
|| ')'
|
||||
|| ' moet uiterlijk per '
|
||||
|| TO_CHAR (cnt.cnt_getopzegdatum (c.cnt_contract_key), 'DD-MM-YYYY')
|
||||
|| ' worden verlengd of opgezegd.',
|
||||
c.cnt_contract_key, c.cnt_contract_nummer_intern, cnt.cnt_getopzegdatum (c.cnt_contract_key), NULL, 'facilitair@medux.nl', NULL
|
||||
FROM cnt_v_aanwezigcontract c, prs_bedrijf b
|
||||
WHERE b.prs_bedrijf_key = c.cnt_prs_bedrijf_key
|
||||
AND cnt_contract_verwijder IS NULL
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND (SYSDATE BETWEEN cnt.cnt_getrappeldatum (c.cnt_contract_key) AND cnt.cnt_getopzegdatum (c.cnt_contract_key));
|
||||
SELECT '',
|
||||
'',
|
||||
c.prs_perslid_key_beh,
|
||||
'Rapp<EFBFBD>l: Contract '
|
||||
|| c.cnt_contract_nummer_intern
|
||||
|| DECODE (cnt_contract_versie,
|
||||
NULL, '',
|
||||
'.' || cnt_contract_versie)
|
||||
|| ' ('
|
||||
|| c.cnt_contract_omschrijving
|
||||
|| ' '
|
||||
|| b.prs_bedrijf_naam
|
||||
|| ')'
|
||||
|| ' moet uiterlijk per '
|
||||
|| TO_CHAR (cnt.cnt_getopzegdatum (c.cnt_contract_key),
|
||||
'DD-MM-YYYY')
|
||||
|| ' worden verlengd of opgezegd.',
|
||||
c.cnt_contract_key,
|
||||
c.cnt_contract_nummer_intern,
|
||||
cnt.cnt_getopzegdatum (c.cnt_contract_key),
|
||||
NULL,
|
||||
'facilitair@medux.nl',
|
||||
NULL
|
||||
FROM cnt_v_aanwezigcontract c, prs_bedrijf b
|
||||
WHERE b.prs_bedrijf_key = c.cnt_prs_bedrijf_key
|
||||
AND cnt_contract_verwijder IS NULL
|
||||
AND ins_discipline_key <> 301 --MDUX#73225 Rappels sturen naar vastgoed@medux.nl voor contracten mbt huur panden
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND (SYSDATE BETWEEN cnt.cnt_getrappeldatum (c.cnt_contract_key)
|
||||
AND cnt.cnt_getopzegdatum (c.cnt_contract_key))
|
||||
UNION ALL
|
||||
SELECT '',
|
||||
'',
|
||||
NULL,
|
||||
'Rapp<EFBFBD>l: Contract '
|
||||
|| c.cnt_contract_nummer_intern
|
||||
|| DECODE (cnt_contract_versie,
|
||||
NULL, '',
|
||||
'.' || cnt_contract_versie)
|
||||
|| ' ('
|
||||
|| c.cnt_contract_omschrijving
|
||||
|| ' '
|
||||
|| b.prs_bedrijf_naam
|
||||
|| ')'
|
||||
|| ' moet uiterlijk per '
|
||||
|| TO_CHAR (cnt.cnt_getopzegdatum (c.cnt_contract_key),
|
||||
'DD-MM-YYYY')
|
||||
|| ' worden verlengd of opgezegd.',
|
||||
c.cnt_contract_key,
|
||||
c.cnt_contract_nummer_intern,
|
||||
cnt.cnt_getopzegdatum (c.cnt_contract_key),
|
||||
NULL,
|
||||
'vastgoed@medux.nl',
|
||||
NULL
|
||||
FROM cnt_v_aanwezigcontract c, prs_bedrijf b
|
||||
WHERE b.prs_bedrijf_key = c.cnt_prs_bedrijf_key
|
||||
AND cnt_contract_verwijder IS NULL
|
||||
AND ins_discipline_key = 301 --MDUX#73225 Rappels sturen naar vastgoed@medux.nl voor contracten mbt huur panden
|
||||
AND cnt_contract_status = 0 /* actief */
|
||||
AND (SYSDATE BETWEEN cnt.cnt_getrappeldatum (c.cnt_contract_key)
|
||||
AND cnt.cnt_getopzegdatum (c.cnt_contract_key));
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW mdux_huurcontracten_tmp
|
||||
|
||||
Reference in New Issue
Block a user