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
|
CREATE OR REPLACE VIEW mdux_v_noti_cntreminder
|
||||||
(code, sender, receiver, text, key, par1, par2, xkey, xemail, xmobile)
|
(code, sender, receiver, text, key, par1, par2, xkey, xemail, xmobile)
|
||||||
AS
|
AS
|
||||||
SELECT '', '', c.prs_perslid_key_beh,
|
SELECT '',
|
||||||
'Rapp<EFBFBD>l: Contract '
|
'',
|
||||||
|| c.cnt_contract_nummer_intern||DECODE(cnt_contract_versie, NULL, '', '.'||cnt_contract_versie)
|
c.prs_perslid_key_beh,
|
||||||
|| ' ('
|
'Rapp<EFBFBD>l: Contract '
|
||||||
|| c.cnt_contract_omschrijving
|
|| c.cnt_contract_nummer_intern
|
||||||
|| ' '
|
|| DECODE (cnt_contract_versie,
|
||||||
|| b.prs_bedrijf_naam
|
NULL, '',
|
||||||
|| ')'
|
'.' || cnt_contract_versie)
|
||||||
|| ' moet uiterlijk per '
|
|| ' ('
|
||||||
|| TO_CHAR (cnt.cnt_getopzegdatum (c.cnt_contract_key), 'DD-MM-YYYY')
|
|| c.cnt_contract_omschrijving
|
||||||
|| ' 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
|
|| b.prs_bedrijf_naam
|
||||||
FROM cnt_v_aanwezigcontract c, prs_bedrijf b
|
|| ')'
|
||||||
WHERE b.prs_bedrijf_key = c.cnt_prs_bedrijf_key
|
|| ' moet uiterlijk per '
|
||||||
AND cnt_contract_verwijder IS NULL
|
|| TO_CHAR (cnt.cnt_getopzegdatum (c.cnt_contract_key),
|
||||||
AND cnt_contract_status = 0 /* actief */
|
'DD-MM-YYYY')
|
||||||
AND (SYSDATE BETWEEN cnt.cnt_getrappeldatum (c.cnt_contract_key) AND cnt.cnt_getopzegdatum (c.cnt_contract_key));
|
|| ' 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
|
CREATE OR REPLACE VIEW mdux_huurcontracten_tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user