Change the code in Data Item Number 5 in the Make 349 Declaration report (10710) as follows:
Existing code 1...
// SETFILTER(Customer."Country/Region Code",'<>%1',CountryCode);
// es0014.begin
PreVATRegNo := '';
// es0013.end
// es0014.end
END;
OnAfterGetRecord=VAR
VATEntry@1100001 : Record 254;
Amount@1100000 : ARRAY [3] OF Decimal;
...
Replacement code 1...
// SETFILTER(Customer."Country/Region Code",'<>%1',CountryCode);
// es0014.begin
PreVATRegNo := '';
// es0013.end
// es0014.end
// Add the following line.
OperationKey := 'E';
// End of the added line.
END;
OnAfterGetRecord=VAR
VATEntry@1100001 : Record 254;
Amount@1100000 : ARRAY [3] OF Decimal;
...
Existing code 2...
CustVendCountry.GET(Customer2."Country/Region Code");
// es0033.begin
IF CustVendWarning349."EU Service" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 2...
CustVendCountry.GET(Customer2."Country/Region Code");
// es0033.begin
IF CustVendWarning349."EU Service" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);
// Add the following line.
OperationKey := 'S';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 3...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'S' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
...
Replacement code 3...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
...
Existing code 4...
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 4...
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);
// Add the following line.
OperationKey := 'T';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 5...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'T' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
FOR i := 1 TO 3 DO
...
Replacement code 5...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
FOR i := 1 TO 3 DO
...
Existing code 6...
END ELSE BEGIN
FOR i := 1 TO 3 DO
IF (AccPrevDeclAmount[i] <> 0) AND (AccOrigDeclAmount[i] <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccPrevDeclAmount[i]),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccOrigDeclAmount[i]),3,13);
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 6...
END ELSE BEGIN
FOR i := 1 TO 3 DO
IF (AccPrevDeclAmount[i] <> 0) AND (AccOrigDeclAmount[i] <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccPrevDeclAmount[i]),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccOrigDeclAmount[i]),3,13);
// Add the following line.
OperationKey := OperationCode[i];
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 7...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
OperationCode[i] + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
//PADSTR('',72,' ');
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END;
...
Replacement code 7...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
//PADSTR('',72,' ');
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END;
...
Existing code 8...
IF Amount[i] <> 0 THEN BEGIN
IF Amount[i] < 0 THEN
Amount[i] := -Amount[i];
TextAmount := COPYSTR(FormatTextAmt(Amount[i]),3,13);
CustVendCountry.GET(Customer2."Country/Region Code");
// Delete the following lines.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
OperationCode[i] + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted lines.
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + Amount[i];
OutFile.WRITE(Txt);
END;
IF AmountOpTri < 0 THEN
...
Replacement code 8...
IF Amount[i] <> 0 THEN BEGIN
IF Amount[i] < 0 THEN
Amount[i] := -Amount[i];
TextAmount := COPYSTR(FormatTextAmt(Amount[i]),3,13);
CustVendCountry.GET(Customer2."Country/Region Code");
// Add the following lines.
OperationKey := OperationCode[i];
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added lines.
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + Amount[i];
OutFile.WRITE(Txt);
END;
IF AmountOpTri < 0 THEN
...
Existing code 9...
// FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0019.end
CustVendCountry.GET(Customer2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Replacement code 9...
// FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0019.end
CustVendCountry.GET(Customer2."Country/Region Code");
// Add the following line.
OperationKey := 'T';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Existing code 10...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Delete the following line.
'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted line.
// es0033.end
// es0020.end
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + AmountOpTri;
OutFile.WRITE(Txt);
...
Replacement code 10...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Add the following line.
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added line.
// es0033.end
// es0020.end
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + AmountOpTri;
OutFile.WRITE(Txt);
...
Existing code 11...
IF AmountEUService < 0 THEN
AmountEUService := -AmountEUService;
IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13);
CustVendCountry.GET(Customer2."Country/Region Code");
// Delete the following lines.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
'S' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted lines.
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + AmountEUService;
OutFile.WRITE(Txt);
END;
IF IsCreditMomoPrinted THEN BEGIN
...
Replacement code 11...
IF AmountEUService < 0 THEN
AmountEUService := -AmountEUService;
IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13);
CustVendCountry.GET(Customer2."Country/Region Code");
// Add the following lines.
OperationKey := 'S';
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added lines.
NoOperations := NoOperations + 1;
TotalAmtShip := TotalAmtShip + AmountEUService;
OutFile.WRITE(Txt);
END;
IF IsCreditMomoPrinted THEN BEGIN
...
Existing code 12...
CustVendCountry.GET(Customer2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'E' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
NoOperations += 1;
TotalAmtShip += AmountEUService;
OutFile.WRITE(Txt);
...
Replacement code 12...
CustVendCountry.GET(Customer2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the folloiwng line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
NoOperations += 1;
TotalAmtShip += AmountEUService;
OutFile.WRITE(Txt);
...
Change the code in Data Item Number 6 in the Make349Declaration report (10710) as follows:
Existing code 1...
// SETFILTER(Vendor."Country/Region Code",'<>%1',CountryCode);
// es0014.begin
PreVATRegNo := '';
// es0014.end
// es0013.end
END;
OnAfterGetRecord=VAR
AppliedAmt@1100000 : Decimal;
PurchCreditMemoOrgDeclaredAmt@1100001 : Decimal;
...
Replacement code 1...
// SETFILTER(Vendor."Country/Region Code",'<>%1',CountryCode);
// es0014.begin
PreVATRegNo := '';
// es0014.end
// es0013.end
// Add the following line.
OperationKey := 'A';
// End of the added line.
END;
OnAfterGetRecord=VAR
AppliedAmt@1100000 : Decimal;
PurchCreditMemoOrgDeclaredAmt@1100001 : Decimal;
...
Existing code 2...
// es0033.begin
IF CustVendWarning349."EU Service" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 2...
// es0033.begin
IF CustVendWarning349."EU Service" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);
// Add the following line.
OperationKey := 'I';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 3...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'I' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
...
Replacement code 3...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
...
Existing code 4...
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 4...
OutFile.WRITE(Txt);
END ELSE
IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);
// Add the following line.
OperationKey := 'T';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 5...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'T' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);
...
Replacement code 5...
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);
...
Existing code 6...
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmount),3,13);
// es0033.end
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Replacement code 6...
PADSTR('',322,' ');
OutFile.WRITE(Txt);
END ELSE BEGIN
TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);
TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmount),3,13);
// Add the following line.
OperationKey := 'A';
// End of the added line.
// es0033.end
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
...
Existing code 7...
// es0033.end
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'A' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
// es0033.begin
//PADSTR('',72,' ');
PADSTR('',322,' ');
// es0033.end
...
Replacement code 7...
// es0033.end
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount +
// es0033.begin
//PADSTR('',72,' ');
PADSTR('',322,' ');
// es0033.end
...
Existing code 8...
// FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0016.end
CustVendCountry.GET(Vendor2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Replacement code 8...
// FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0016.end
CustVendCountry.GET(Vendor2."Country/Region Code");
// Add the following line.
OperationKey := 'A';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Existing code 9...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Delete the following line.
'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted line.
// es0033.end
// es0019.end
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + NormalAmount;
OutFile.WRITE(Txt);
...
Replacement code 9...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Add the following line.
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added line.
// es0033.end
// es0019.end
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + NormalAmount;
OutFile.WRITE(Txt);
...
Existing code 10...
// FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0016.end
CustVendCountry.GET(Vendor2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Replacement code 10...
// FORMAT(CustVendVatRegNo,15) +
// PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// // es0016.end
CustVendCountry.GET(Vendor2."Country/Region Code");
// Add the following line.
OperationKey := 'T';
// End of the added line.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
...
Existing code 11...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Delete the following line.
'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted line.
// es0033.end
// es0019.end
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + AmountOpTri;
OutFile.WRITE(Txt);
...
Replacement code 11...
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// es0033.begin
//'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');
// Add the following line.
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added line.
// es0033.end
// es0019.end
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + AmountOpTri;
OutFile.WRITE(Txt);
...
Existing code 12...
IF AmountEUService < 0 THEN
AmountEUService := -AmountEUService;
IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13);
CustVendCountry.GET(Vendor2."Country/Region Code");
// Delete the following lines.
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
'I' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the deleted lines.
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + AmountEUService;
OutFile.WRITE(Txt);
END;
// es0033.end
...
Replacement code 12...
IF AmountEUService < 0 THEN
AmountEUService := -AmountEUService;
IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN
TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13);
CustVendCountry.GET(Vendor2."Country/Region Code");
// Add the following lines.
OperationKey := 'I';
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');
// End of the added lines.
NoOperations := NoOperations + 1;
TotalAmtReciv := TotalAmtReciv + AmountEUService;
OutFile.WRITE(Txt);
END;
// es0033.end
...
Existing code 13...
CustVendCountry.GET(Customer2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Delete the following line.
'E' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the deleted line.
CustVendWarning349."Original Declaration Period" + TextAmount +
PADSTR('',322,' ');
NoOperations += 1;
TotalAmtShip += AmountEUService;
OutFile.WRITE(Txt);
...
Replacement code 13...
CustVendCountry.GET(Customer2."Country/Region Code");
Txt :=
'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +
FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +
PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +
// Add the following line.
OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +
// End of the added line.
CustVendWarning349."Original Declaration Period" + TextAmount +
PADSTR('',322,' ');
NoOperations += 1;
TotalAmtShip += AmountEUService;
OutFile.WRITE(Txt);
...