PNBR#64368: Rapportage voor Elise
svn path=/Customer/trunk/; revision=48623
This commit is contained in:
@@ -8295,7 +8295,7 @@ BEGIN
|
||||
END;
|
||||
/
|
||||
|
||||
CREATE OR REPLACE VIEW PNBR_V_RAP_BES_ELISE
|
||||
CREATE OR REPLACE VIEW PNBR_V_RAP_REL_GESCHENKEN
|
||||
AS
|
||||
SELECT bes_bestelling_key,
|
||||
bestelaanvraagnr,
|
||||
@@ -8379,8 +8379,46 @@ SELECT bes_bestelling_key,
|
||||
AND b.bes_bestelling_key = bi.bes_bestelling_key
|
||||
AND bi.bes_srtdeel_key = sd.bes_srtdeel_key
|
||||
AND sd.bes_srtgroep_key = sg.bes_srtgroep_key
|
||||
AND sg.ins_discipline_key = d.ins_discipline_key);
|
||||
|
||||
AND sg.ins_discipline_key = d.ins_discipline_key)
|
||||
WHERE besteldatum > = TRUNC (TRUNC (SYSDATE, 'Month') - 1, 'Month')
|
||||
AND besteldatum < TRUNC (SYSDATE, 'Month');
|
||||
|
||||
CREATE OR REPLACE VIEW PNBR_V_NOTI_MAILING
|
||||
(
|
||||
CODE,
|
||||
SENDER,
|
||||
RECEIVER,
|
||||
TEXT,
|
||||
KEY,
|
||||
XKEY,
|
||||
XEMAIL,
|
||||
XMOBILE
|
||||
)
|
||||
AS
|
||||
SELECT fac_srtnotificatie_code code,
|
||||
4 sender, --- 4 = Facilitor
|
||||
NULL receiver,
|
||||
'Besteloverzicht relatiegeschenken afgelopen maand' text,
|
||||
2761 key, ---- refkey: is het rapport PNBR_V_RAP_REL_GESCHENKEN
|
||||
NULL xkey,
|
||||
'fstolzenbach@brabant.nl' xemail,
|
||||
NULL xmobile
|
||||
FROM fac_srtnotificatie sn
|
||||
WHERE sn.fac_srtnotificatie_code = 'CUST08'
|
||||
AND TO_CHAR (SYSDATE, 'dd') = '01' -- Elke 1e dag van de maand
|
||||
AND TO_CHAR (SYSDATE, 'mm') IN ('01',
|
||||
'02',
|
||||
'03',
|
||||
'04',
|
||||
'05',
|
||||
'06',
|
||||
'07',
|
||||
'08',
|
||||
'09',
|
||||
'10',
|
||||
'11',
|
||||
'12');
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user