PCHD#55824 Rapportage offerteopdrachten met bijlagen, enkel opdrachten obv offerteopdrachten

svn path=/Customer/trunk/; revision=40951
This commit is contained in:
Sander Schepers
2019-02-14 08:43:24 +00:00
parent 67e545dfde
commit 48f6860270

View File

@@ -1690,6 +1690,7 @@ CREATE OR REPLACE VIEW pchd_v_rap_offerteopdr
melding_key,
vakgroep,
melding,
opdracht_type,
opdracht_nummer,
opdracht_status,
opdracht_locatie_code,
@@ -1705,12 +1706,14 @@ CREATE OR REPLACE VIEW pchd_v_rap_offerteopdr
opdracht_uitvoerende,
opdracht_uitvoerende_contact,
opdracht_behandelaar,
bijlage
bijlage,
opdracht_na_offerte
)
AS
SELECT mo.melding_key,
mo.productgroep,
mo.subproductgroep,
mo.opdracht_type,
mo.opdracht_nummer,
mo.opdracht_status,
mo.opdracht_locatie_code,
@@ -1734,14 +1737,14 @@ AS
WHEN (SELECT COUNT (opdracht_key)
FROM mld_v_udr_opdracht o
WHERE o.melding_key = mo.melding_key
AND opdracht_type = 'Offerte') > 0
AND SUBSTR (opdracht_type, 1, 7) = 'Offerte') > 0
THEN
'Opdracht_na_offerte'
ELSE
''
END
FROM mld_v_udr_meldingopdracht mo
WHERE mo.opdracht_type <> 'Offerte';
AS opdracht_na_offerte
FROM mld_v_udr_meldingopdracht mo;
CREATE OR REPLACE VIEW prs_v_contactpersoon_fullnames
(