...
PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
// Delete the following lines.
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(ABS(ROUND(pTotalAmount,1,'<')*100),12);
NewLine;
InsertTextValue ('89',2,Blank);
InsertIntegerValue (pResumes[1], 5);
// End of the deleted lines.
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...
...
PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
// Add the following lines.
//PT355807,o NewLine;
//PT355807,o InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,72,Blank);
InsertVAT41LastLine(24);
NewLine;
InsertTextValue ('89',2,Blank);
//PT355807,o InsertIntegerValue (pResumes[1], 5);
// End of the added lines.
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...
...
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
END;
BEGIN
...
...
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
// Add the following lines.
InsertIntegerValue (pResumes[7], 5); //PT355807,n
InsertTextValue (Blank,104,Blank); //PT355807,n
END;
PROCEDURE InsertVAT40LastLine@1000000005(Size@1000000000 : Integer);
BEGIN
//PT355807,sn
FIND('+');
IF STRLEN("Line Value") <> 134 THEN BEGIN
"Line Value" := COPYSTR("Line Value",1,50) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",51);
MODIFY;
END;
//PT355807,en
END;
PROCEDURE InsertVAT41LastLine@1000000007(Size@1000000000 : Integer);
BEGIN
//PT355807,sn
FIND('+');
IF STRLEN("Line Value") <> 134 THEN BEGIN
"Line Value" := COPYSTR("Line Value",1,26) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",27);
MODIFY;
END;
//PT355807,en
END;
PROCEDURE LastVATAnnex40Line2@1000000009(pVATAnnexSetup@1000000003 : Record 13386;pTotalAmount@1000000002 : Decimal;pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
BEGIN
//PT355807,sn
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,72);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,48,Blank);
NewLine;
InsertTextValue ('96',2,Blank);
InsertIntegerValue (1, 5);
InsertTextValue(pVATregNo,9,Blank);
InsertTextValue (Blank,118,Blank);
NewLine;
InsertTextValue ('69',2,Blank);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
InsertIntegerValue (pResumes[7], 5);
InsertIntegerValue (pResumes[8], 5);
InsertIntegerValue (1, 5);
InsertTextValue (Blank,92,Blank);
//PT355807,en
END;
PROCEDURE LastVATAnnex41Line2@1000000008(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
//PT355807,sn
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,48);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,72,Blank);
NewLine;
InsertTextValue ('89',2,Blank);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
InsertIntegerValue (pResumes[7], 5);
InsertTextValue (Blank,102,Blank);
//NAVPTL005.002,en
// End of the added lines.
END;
BEGIN
...