VLKC#51973 rapportage tbv wijzigingen contract
svn path=/Customer/trunk/; revision=36775
This commit is contained in:
@@ -3450,6 +3450,56 @@ AS
|
||||
AND p.prs_perslid_key = st.prs_key
|
||||
AND pf.prs_perslid_key = p.prs_perslid_key;
|
||||
|
||||
CREATE OR REPLACE VIEW vlkc_v_rap_cnttrack
|
||||
(
|
||||
wijzig_datum,
|
||||
wijziging,
|
||||
gewijzigd_door,
|
||||
cnt_contract_key,
|
||||
contract_nummer,
|
||||
contract_versie,
|
||||
contractsoort,
|
||||
omschrijving,
|
||||
ingangsdatum,
|
||||
einddatum,
|
||||
contractbedrag,
|
||||
termijnkosten,
|
||||
beheerder,
|
||||
status
|
||||
)
|
||||
AS
|
||||
SELECT fac_tracking_datum,
|
||||
REPLACE (fac_tracking_oms, 'Contract gewijzigd' || CHR (10), '')
|
||||
Wijziging,
|
||||
pf2.prs_perslid_naam_full gewijzigd_door,
|
||||
cnt_contract_key,
|
||||
cnt_contract_nummer,
|
||||
cnt_contract_versie,
|
||||
cd.ins_discipline_omschrijving,
|
||||
cnt_contract_omschrijving,
|
||||
cnt_contract_looptijd_van,
|
||||
cnt_contract_looptijd_tot,
|
||||
cnt_contract_kosten,
|
||||
cnt_contract_termijnkosten,
|
||||
pf.prs_perslid_naam_full beheerder,
|
||||
cnt_contract_status
|
||||
FROM cnt_contract c,
|
||||
fac_tracking ft,
|
||||
fac_srtnotificatie sn,
|
||||
prs_v_perslid_fullnames pf,
|
||||
prs_v_perslid_fullnames pf2,
|
||||
cnt_discipline cd
|
||||
WHERE cnt_contract_verwijder IS NULL
|
||||
AND c.cnt_contract_key = ft.fac_tracking_refkey
|
||||
AND ft.fac_srtnotificatie_key = sn.fac_srtnotificatie_key
|
||||
AND fac_srtnotificatie_xmlnode = 'contract'
|
||||
AND ( UPPER (fac_tracking_oms) LIKE '%TERMIJNBEDRAG%'
|
||||
OR UPPER (fac_tracking_oms) LIKE '%INGANGSDATUM%'
|
||||
OR UPPER (fac_tracking_oms) LIKE '%EINDDATUM%')
|
||||
AND pf.prs_perslid_key = prs_perslid_key_beh
|
||||
AND ft.prs_perslid_key = pf2.prs_perslid_key(+)
|
||||
AND cd.ins_discipline_key = c.ins_discipline_key;
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user