...
CalcCEVERVDeclNo(CEDeclNo,StartDateC0,StartDateC1,StartDateC2,StartDateC3,EndDateC0,EndDateC1,EndDateC2,EndDateC3);
CalcCEVERVDeclNo(VEDeclNo,StartDateV0,StartDateV1,StartDateV2,StartDateV3,EndDateV0,EndDateV1,EndDateV2,EndDateV3);
CalcCEVERVDeclNo(RVDeclNo,StartDateR0,StartDateR1,StartDateR2,StartDateR3,EndDateR0,EndDateR1,EndDateR2,EndDateR3);
END;
// Delete the following line.
PROCEDURE CalcStartEndDateCVR@1110111(RelInclActPer@1110000 : Boolean; VAR StartDate0@1110001 : Date;VAR StartDate1@1110002 : Date;VAR StartDate2@1110003 : Date;VAR StartDate3@1110004 : Date;VAR EndDate0@1110005 : Date;VAR EndDate1@1110006 : Date;VAR EndDate2@1110007 : Date;VAR EndDate3@1110008 : Date;
VAR DeclYear1@1110009 : Integer;VAR DeclYear2@1110010 : Integer;VAR DeclYear3@1110011 : Integer;VAR PeriodMonth1@1110012 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';VAR PeriodMonth2@1110013 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';
VAR PeriodMonth3@1110014 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';VAR PeriodQuarter1@1110015 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter';VAR PeriodQuarter2@1110016 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter';VAR PeriodQuarter3@1110017 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter');
BEGIN
IF NOT RelInclActPer THEN BEGIN
CLEAR(StartDate0);
...
...
CalcCEVERVDeclNo(CEDeclNo,StartDateC0,StartDateC1,StartDateC2,StartDateC3,EndDateC0,EndDateC1,EndDateC2,EndDateC3);
CalcCEVERVDeclNo(VEDeclNo,StartDateV0,StartDateV1,StartDateV2,StartDateV3,EndDateV0,EndDateV1,EndDateV2,EndDateV3);
CalcCEVERVDeclNo(RVDeclNo,StartDateR0,StartDateR1,StartDateR2,StartDateR3,EndDateR0,EndDateR1,EndDateR2,EndDateR3);
END;
// Add the following line.
PROCEDURE CalcStartEndDateCVR@1110111(RelInclActPer@1110000 : Boolean; VAR StartDate0@1110001 : Date;VAR StartDate1@1110002 : Date;VAR StartDate2@1110003 : Date;VAR StartDate3@1110004 : Date;VAR EndDate0@1110005 : Date;VAR EndDate1@1110006 : Date;VAR EndDate2@1110007 : Date;VAR EndDate3@1110008 : Date;
VAR DeclYear1@1110009 : Integer;VAR DeclYear2@1110010 : Integer;VAR DeclYear3@1110011 : Integer;VAR PeriodMonth1@1110012 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';VAR PeriodMonth2@1110013 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';
VAR PeriodMonth3@1110014 : ' ,January,February,March,April,May,June,July,August,September,October,November,December';VAR PeriodQuarter1@1110015 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter';VAR PeriodQuarter2@1110016 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter';VAR PeriodQuarter3@1110017 : ' ,1§ Quarter,2§ Quarter,3§ Quarter,4§ Quarter');
BEGIN
IF NOT RelInclActPer THEN BEGIN
CLEAR(StartDate0);
"Transaction No." := NextTransactionNo;
...