From 3932d65ee2e3030805db27e9fe163cea5fd50f43 Mon Sep 17 00:00:00 2001 From: Maarten van der Heide Date: Thu, 20 Jun 2019 07:47:07 +0000 Subject: [PATCH] VLKC#56901 Bon+Rap/Prefixen contracten svn path=/Customer/trunk/; revision=43020 --- VLKC/vlkc.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/VLKC/vlkc.sql b/VLKC/vlkc.sql index 5a8bb693a..e9457a40e 100644 --- a/VLKC/vlkc.sql +++ b/VLKC/vlkc.sql @@ -1480,8 +1480,8 @@ AS AND pers.prs_perslid_key = beso.PRS_PERSLID_KEY AND best.BES_BESTELLING_KEY = besi.BES_BESTELLING_KEY AND best.PRS_KOSTENPLAATS_KEY = kpn.PRS_KOSTENPLAATS_KEY; - - + + @@ -3389,7 +3389,7 @@ CREATE OR REPLACE VIEW vlkc_v_rap_cnt_verantw AS SELECT TO_CHAR (c.jaar, 'yyyy') jaar, DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') || c.cnt_contract_nummer_intern || DECODE (c.cnt_contract_versie, NULL, '', '.' || TO_CHAR (c.cnt_contract_versie)) contractnummer, - DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CF', 'CF', 'CV', 'CV', '???') cf_of_cv, + DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') cf_of_cv, lev.prs_bedrijf_naam leverancier, lev.prs_leverancier_nr leveranciersnummer, c.cnt_contract_kosten contractbedrag, @@ -3475,7 +3475,7 @@ AS AND c.cnt_contract_key = cp.cnt_contract_key(+) GROUP BY TO_CHAR (c.jaar, 'yyyy'), DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') || c.cnt_contract_nummer_intern || DECODE (c.cnt_contract_versie, NULL, '', '.' || TO_CHAR (c.cnt_contract_versie)), - DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CF', 'CF', 'CV', 'CV', '???'), + DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C'), lev.prs_bedrijf_naam, lev.prs_leverancier_nr, c.cnt_contract_kosten, @@ -3490,7 +3490,7 @@ AS UNION ALL -- Facturatie/verantwoording op verlopen contracten (in jaren né cnt_contract_looptijd_tot)! SELECT SUBSTR (verantw.jaarkey, 1, 4) jaar, DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') || c.cnt_contract_nummer_intern || DECODE (c.cnt_contract_versie, NULL, '', '.' || TO_CHAR (c.cnt_contract_versie)) contractnummer, - DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CF', 'CF', 'CV', 'CV', '???') cf_of_cv, + DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') cf_of_cv, lev.prs_bedrijf_naam leverancier, lev.prs_leverancier_nr leveranciersnummer, c.cnt_contract_kosten contractbedrag, @@ -3571,7 +3571,7 @@ AS AND c.cnt_contract_key = cp.cnt_contract_key(+) GROUP BY SUBSTR (verantw.jaarkey, 1, 4), DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C') || c.cnt_contract_nummer_intern || DECODE (c.cnt_contract_versie, NULL, '', '.' || TO_CHAR (c.cnt_contract_versie)), - DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CF', 'CF', 'CV', 'CV', '???'), + DECODE (SUBSTR (td.ins_discipline_omschrijving, 1, 2), 'CV', 'CV', 'C'), lev.prs_bedrijf_naam, lev.prs_leverancier_nr, c.cnt_contract_kosten,