PIVP#78290 -- Export routine zaalreservering foute datum

svn path=/Customer/trunk/; revision=60435
This commit is contained in:
Norbert Wassink
2023-05-16 15:33:19 +00:00
parent 4a82621184
commit 4df18d65cc

View File

@@ -3841,13 +3841,15 @@ BEGIN
v_currentyear := TO_CHAR(TO_NUMBER(TO_CHAR(SYSDATE,'YYYY'))-1);
v_startmonth:='12';
END IF;
IF v_currentmonth = 5 THEN
IF v_currentmonth = 5 AND v_currentYear= '2023' THEN -- alleen voor begin de eerts complete periode kunnen exporteen
v_startDate := TO_DATE('01-01-2023','DD-MM-YYYY');
v_endDate := LAST_DAY(SYSDATE);
ELSE
v_startDate := TO_DATE('01-'||v_startmonth||'-'||v_currentyear,'DD-MM-YYYY');
v_endDate := LAST_DAY(v_startDate);
END IF;
v_endDate := LAST_DAY(v_startDate);
v_factuurdatum:=v_enddate;
-- v_currentmonth :=10;