FSN#27051: SLA uitvoertijd in dagen en uren nog aanscherpen.
svn path=/Database/trunk/; revision=22716
This commit is contained in:
@@ -528,11 +528,8 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
extradag NUMBER;
|
||||
|
||||
BEGIN
|
||||
-- We ondersteunen ook D/U
|
||||
uitvoertijdtype := DECODE(uitvoertijdtype, 'D', 'DAGEN', 'U', 'UREN', uitvoertijdtype); -- D en U worden ook ondersteund
|
||||
|
||||
--veronderstelt NLS_TERRITORY='AMERICA'
|
||||
IF uitvoertijd IS NOT NULL AND begindatum IS NOT NULL AND uitvoertijdtype = 'DAGEN'
|
||||
IF uitvoertijd IS NOT NULL AND begindatum IS NOT NULL AND uitvoertijdtype IN ('D', 'DAGEN')
|
||||
THEN
|
||||
IF palleenWerkdagen = 0 THEN
|
||||
RETURN begindatum + uitvoertijd; // zo simpel kan het zijn
|
||||
@@ -631,7 +628,7 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
END IF;
|
||||
|
||||
returnval := newdatumgereed;
|
||||
ELSIF uitvoertijd IS NOT NULL AND begindatum IS NOT NULL AND uitvoertijdtype = 'UREN'
|
||||
ELSIF uitvoertijd IS NOT NULL AND begindatum IS NOT NULL AND uitvoertijdtype IN ('U', 'UREN')
|
||||
THEN
|
||||
/*
|
||||
** Alles is al decimalen
|
||||
@@ -736,10 +733,8 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
pEindWerkUur,
|
||||
palleenWerkdagen);
|
||||
END IF;
|
||||
-- We ondersteunen ook D/U
|
||||
uitvoertijdtype := DECODE(uitvoertijdtype, 'D' , 'DAGEN', 'U', 'UREN', uitvoertijdtype); -- D en U worden ook ondersteund
|
||||
|
||||
IF uitvoertijdtype = 'DAGEN' -- Logisch zo?
|
||||
IF uitvoertijdtype IN ('D', 'DAGEN') -- Logisch zo?
|
||||
THEN
|
||||
RETURN fac.count_Work_Days_InclTime (begindatum, einddatum);
|
||||
END IF;
|
||||
|
||||
Reference in New Issue
Block a user