PNBR#64368: Rapportage voor Elise: niet per maand maar per kwartaal en voor een beperkt aantal catalogi
svn path=/Customer/trunk/; revision=48640
This commit is contained in:
@@ -8297,7 +8297,7 @@ END;
|
||||
|
||||
CREATE OR REPLACE VIEW PNBR_V_RAP_REL_GESCHENKEN
|
||||
AS
|
||||
SELECT bes_bestelling_key,
|
||||
SELECT bes_bestelling_key,
|
||||
bestelaanvraagnr,
|
||||
besteldatum,
|
||||
besteller,
|
||||
@@ -8306,8 +8306,9 @@ SELECT bes_bestelling_key,
|
||||
catalogus,
|
||||
catalogus_key,
|
||||
productomschrijving,
|
||||
prijs,
|
||||
itemprijs,
|
||||
aantal,
|
||||
prijs,
|
||||
keuze,
|
||||
begrotingspost,
|
||||
bet_pin
|
||||
@@ -8331,6 +8332,8 @@ SELECT bes_bestelling_key,
|
||||
catalogus_key,
|
||||
bi.bes_bestelling_item_prijs * bi.bes_bestelling_item_aantal
|
||||
prijs,
|
||||
bi.bes_bestelling_item_aantal
|
||||
aantal,
|
||||
bi.bes_bestelling_item_prijs
|
||||
itemprijs,
|
||||
sd.bes_srtdeel_omschrijving
|
||||
@@ -8385,14 +8388,14 @@ SELECT bes_bestelling_key,
|
||||
AND sg.ins_discipline_key = d.ins_discipline_key)
|
||||
WHERE besteldatum > = ADD_MONTHS (TRUNC (SYSDATE, 'Q'), -3)
|
||||
AND besteldatum < = TRUNC (SYSDATE, 'Q') - 1
|
||||
AND catalogus_key IN (2441, --- Bloemenboetiek D. Bragt
|
||||
2442, --- Bloemsierkunst Oxalis
|
||||
2443, --- Bloemsierkunst Peter Kuys
|
||||
3041, --- Cadeaubon
|
||||
123, --- Geschenk
|
||||
1041, --- Geschenk GS (cat. D)
|
||||
3481 --- VVV Cadeaukaart
|
||||
);
|
||||
AND catalogus_key IN (2441, --- Bloemenboetiek D. Bragt
|
||||
2442, --- Bloemsierkunst Oxalis
|
||||
2443, --- Bloemsierkunst Peter Kuys
|
||||
3041, --- Cadeaubon
|
||||
123, --- Geschenk
|
||||
1041, --- Geschenk GS (cat. D)
|
||||
3481 --- VVV Cadeaukaart
|
||||
);
|
||||
|
||||
CREATE OR REPLACE VIEW PNBR_V_NOTI_MAILING
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user