FSN#32887: Qlikview views rechtstreeks goede datatype laten opleveren.
svn path=/Database/trunk/; revision=25582
This commit is contained in:
@@ -88,7 +88,7 @@ AS
|
||||
personeelsnr, werkplek, ins_discipline_key, catalogus, bes_srtgroep_key, groep, afleverdatum, doorlooptijd_werkdgn, sla_tijd,
|
||||
productcode, prijs, inkoopprijs, status, gefiatteerddoor, bestelopdrachtnummer, aantal, itemprijs, iteminkoopprijs, bes_srtdeel_key, productomschrijving, itemposnr
|
||||
FROM (SELECT b.bes_bestelling_key bes_bestelling_key, 'A-' || b.bes_bestelling_key bestelaanvraagnr,
|
||||
TO_CHAR (b.bes_bestelling_datum, 'YYYY-MM-DD') besteldatum,
|
||||
TRUNC(b.bes_bestelling_datum) besteldatum,
|
||||
(SELECT prs_perslid_naam_full
|
||||
FROM prs_v_perslid_fullnames_all pf
|
||||
WHERE pf.prs_perslid_key = p.prs_perslid_key) besteller,
|
||||
@@ -135,15 +135,14 @@ AS
|
||||
d.ins_discipline_omschrijving catalogus,
|
||||
sg.bes_srtgroep_key bes_srtgroep_key,
|
||||
sg.bes_srtgroep_omschrijving groep,
|
||||
TO_CHAR (b.bes_bestelling_leverdatum, 'YYYY-MM-DD') afleverdatum,
|
||||
TO_CHAR (fac.count_work_days (b.bes_bestelling_datum, NVL (fac.gettrackingdate ('BESOTV', b.bes_bestelling_key), SYSDATE))
|
||||
) doorlooptijd_werkdgn,
|
||||
TRUNC(bes_bestelling_leverdatum) afleverdatum,
|
||||
fac.count_work_days (b.bes_bestelling_datum, NVL (fac.gettrackingdate ('BESOTV', b.bes_bestelling_key), SYSDATE)) doorlooptijd_werkdgn,
|
||||
NVL ((SELECT bdp.bes_disc_params_leverdagen
|
||||
FROM bes_disc_params bdp
|
||||
WHERE d.ins_discipline_key = bdp.bes_ins_discipline_key), 0) sla_tijd,
|
||||
sd.bes_srtdeel_nr productcode,
|
||||
REPLACE (TO_CHAR (bi.bes_bestelling_item_prijs * bi.bes_bestelling_item_aantal, '9999990.99'), '.', ',') prijs,
|
||||
REPLACE (TO_CHAR (NVL(bes.getsrtdeelinkprijs(sd.bes_srtdeel_key, bes_bestelling_datum), bi.bes_bestelling_item_prijs) * bi.bes_bestelling_item_aantal, '9999990.99'), '.', ',') inkoopprijs,
|
||||
bi.bes_bestelling_item_prijs * bi.bes_bestelling_item_aantal prijs,
|
||||
NVL(bes.getsrtdeelinkprijs(sd.bes_srtdeel_key, bes_bestelling_datum), bi.bes_bestelling_item_prijs) * bi.bes_bestelling_item_aantal inkoopprijs,
|
||||
(SELECT bes_bestellingstatuses_omschr
|
||||
FROM bes_bestellingstatuses bs
|
||||
WHERE bs.bes_bestellingstatuses_key = b.bes_bestelling_status) status,
|
||||
@@ -151,8 +150,8 @@ AS
|
||||
FROM prs_v_perslid_fullnames_all pf
|
||||
WHERE pf.prs_perslid_key = b.bes_bestelling_fiat_user) gefiatteerddoor,
|
||||
'O-' || bo.bes_bestelopdr_id bestelopdrachtnummer, bi.bes_bestelling_item_aantal aantal,
|
||||
REPLACE (TO_CHAR (bi.bes_bestelling_item_prijs, '9999990.99'), '.', ',') itemprijs,
|
||||
REPLACE (TO_CHAR (NVL(bes.getsrtdeelinkprijs(sd.bes_srtdeel_key, bes_bestelling_datum), bi.bes_bestelling_item_prijs), '9999990.99'), '.', ',') iteminkoopprijs,
|
||||
bi.bes_bestelling_item_prijs itemprijs,
|
||||
NVL(bes.getsrtdeelinkprijs(sd.bes_srtdeel_key, bes_bestelling_datum), bi.bes_bestelling_item_prijs) iteminkoopprijs,
|
||||
sd.bes_srtdeel_key bes_srtdeel_key,
|
||||
sd.bes_srtdeel_omschrijving productomschrijving,
|
||||
boi.bes_bestelopdr_item_posnr itemposnr
|
||||
|
||||
Reference in New Issue
Block a user