FSN#34036 de aanpassing was dus niet compatible, gecorrigeerd
svn path=/Database/trunk/; revision=26589
This commit is contained in:
@@ -2288,7 +2288,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
BEGIN
|
||||
-- The flags are for compatibility mostly. Flags 2 and 4 cannot be combined (useless)
|
||||
-- flags: 0=default, 1=view has xemail and xmobile, 2=use fac.notifytracking instead of fac.putnotification(srtprio)
|
||||
-- 4=view has attachments
|
||||
-- 4=view has attachments, 8=view has xsender
|
||||
-- Kijk of de extra kolommen xemail en xmobile in de view zitten, dan gebruiken we die ook
|
||||
|
||||
IF BITAND(pflags, 2) = 2 -- Alleen sender, text, code en xkey verplicht (met xkey zoals in fac_tracking zou komen)
|
||||
@@ -2297,11 +2297,26 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
'SELECT sender, NULL receiver, text, code, fac_srtnotificatie_key, NULL key, xkey, NULL xsender, NULL xemail, NULL xmobile, NULL attachments'
|
||||
|| ' FROM fac_srtnotificatie, ' || pviewname
|
||||
|| ' WHERE code = fac_srtnotificatie_code';
|
||||
ELSIF BITAND(pflags, 5) = 5 /* 4+1 */
|
||||
ELSIF BITAND(pflags, 13) = 13 /* 8+4+1 */
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, xsender, xemail, xmobile, attachments FROM '
|
||||
|| pviewname;
|
||||
ELSIF BITAND(pflags, 9) = 9 /* 8+1 */
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, xsender, xemail, xmobile, NULL attachments FROM '
|
||||
|| pviewname;
|
||||
ELSIF BITAND(pflags, 8) = 8
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, xsender, NULL xemail, NULL xmobile, NULL attachments FROM '
|
||||
|| pviewname;
|
||||
ELSIF BITAND(pflags, 5) = 5 /* 4+1 */
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, NULL xsender, xemail, xmobile, attachments FROM '
|
||||
|| pviewname;
|
||||
ELSIF BITAND(pflags, 4) = 4
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
@@ -2310,7 +2325,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
ELSIF BITAND(pflags, 1) = 1
|
||||
THEN
|
||||
OPEN messages FOR
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, xsender, xemail, xmobile, NULL attachments FROM '
|
||||
'SELECT sender, receiver, text, code, NULL fac_srtnotificatie_key, key, xkey, NULL xsender, xemail, xmobile, NULL attachments FROM '
|
||||
|| pviewname;
|
||||
ELSE -- BITAND(pflags, 1) = 0
|
||||
OPEN messages FOR
|
||||
|
||||
Reference in New Issue
Block a user