...
Propline."Description 4":=DELCHR(Propline."Description 4"+' '+UseDocumentNo,'<>')
ELSE
Propline.Docket:=TRUE;
END;
// Delete the following lines.
IF Propline.Docket THEN
IF Propline."Description 1"<>Text1000016 THEN BEGIN
Propline."Description 1":=Text1000016;
CASE Propline."Account Type" OF
Propline."Account Type"::Customer:
BEGIN
Custm.GET(Propline."Account No.");
IF Custm."Our Account No."<>'' THEN
Propline."Description 2" :=
COPYSTR(STRSUBSTNO(Text1000018, Custm."Our Account No."), 1, MAXSTRLEN(Propline."Description 2" ))
ELSE BEGIN
CompanyInfo.GET;
Propline."Description 2":= COPYSTR(CompanyInfo.Name,1,MAXSTRLEN(Propline."Description 2" ));
END;
END;
Propline."Account Type"::Vendor:
BEGIN
Vend.GET(Propline."Account No.");
IF Vend."Our Account No."<>'' THEN
Propline."Description 2" :=
COPYSTR(STRSUBSTNO(Text1000017, Vend."Our Account No."),1,MAXSTRLEN(Propline."Description 2"))
ELSE BEGIN
CompanyInfo.GET;
Propline."Description 2":= COPYSTR(CompanyInfo.Name,1,MAXSTRLEN(Propline."Description 2" ));
END;
END;
END;
Propline."Description 3":='';
Propline."Description 4":='';
END;
// End of the lines.
IF Propline.Identification='' THEN BEGIN
TrMode.TESTFIELD("Identification No. Series");
NoSeriesManagement.InitSeries(TrMode."Identification No. Series",
'',
...
...
Propline."Description 4":=DELCHR(Propline."Description 4"+' '+UseDocumentNo,'<>')
ELSE
Propline.Docket:=TRUE;
END;
// Add the following line.
FillDescriptionAndCurrency;
IF Propline.Identification='' THEN BEGIN
TrMode.TESTFIELD("Identification No. Series");
NoSeriesManagement.InitSeries(TrMode."Identification No. Series",
'',
...
...
Propline."Transaction Date",
Propline.Identification,
Propline."Identification No. Series");
END;
Propline.MODIFY;
NumeratorDetailLines:=NumeratorDetailLines+1;
BatchStatus.UPDATE(2,ROUND(NumeratorDetailLines/NumberOfDetailLines*10000,1));
END;
...
...
Propline."Transaction Date",
Propline.Identification,
Propline."Identification No. Series");
END;
// Add the following lines.
IF Propline."Foreign Currency" = Propline."Currency Code" THEN
Propline.VALIDATE("Foreign Amount",0)
ELSE BEGIN
Propline.VALIDATE("Foreign Amount",ROUND(
CurrencyExchangeRate.ExchangeAmtFCYToFCY(
Propline."Transaction Date",Propline."Currency Code",Propline."Foreign Currency",Propline.Amount)));
END;
// End of the lines.
Propline.MODIFY;
NumeratorDetailLines:=NumeratorDetailLines+1;
BatchStatus.UPDATE(2,ROUND(NumeratorDetailLines/NumberOfDetailLines*10000,1));
END;
...