...
CASE TransFormat.Subtype OF
// Delete the following lines.
TransFormat.Subtype::"Integer and Decimal Part" :
BEGIN
TransFormat.Value := Negative + FORMAT(Amt,TransFormat.Length - STRLEN(Negative),
Text1100010+'2'+Text1100011);
TransFormat.Value := CONVERTSTR(DELCHR(TransFormat.Value,'=',',.'),' ','0');
TransFormat.Value := PADSTR('',TransFormat.Length - STRLEN(TransFormat.Value),'0') + TransFormat.Value;
END;
TransFormat.Subtype::"Integer Part" :
BEGIN
TransFormat.Value := Negative + FORMAT(Amt,TransFormat.Length - STRLEN(Negative),
Text1100012);
TransFormat.Value := CONVERTSTR(CONVERTSTR(TransFormat.Value,',','.'),' ','0');
END;
TransFormat.Subtype::"Decimal Part" :
BEGIN
TransFormat.Value := FORMAT(Amt,TransFormat.Length+1,Text1100010+
FORMAT(TransFormat.Length,1) +Text1100013);
TransFormat.Value := CONVERTSTR(DELCHR(TransFormat.Value,'=','.,'),' ','0');
TransFormat.Value := PADSTR('',TransFormat.Length - STRLEN(TransFormat.Value),'0') + TransFormat.Value;
END;
// End of the lines.
END;
TransFormat.MODIFY;
...
...
CASE TransFormat.Subtype OF
// Add the following lines.
TransFormat.Subtype::"Integer and Decimal Part":
BEGIN
TransFormat.Value := FORMAT(Amt,TransFormat.Length,Text1100010 + '2' + Text1100011);
TransFormat.Value := CONVERTSTR(DELCHR(TransFormat.Value,'=',',.'),' ','0');
TransFormat.Value := Negative + PADSTR('',TransFormat.Length - STRLEN(Negative) -
STRLEN(TransFormat.Value),'0') + TransFormat.Value;
END;
TransFormat.Subtype::"Integer Part":
BEGIN
TransFormat.Value := Negative + FORMAT(Amt,TransFormat.Length - STRLEN(Negative),
Text1100012);
TransFormat.Value := CONVERTSTR(CONVERTSTR(TransFormat.Value,',','.'),' ','0');
END;
TransFormat.Subtype::"Decimal Part":
BEGIN
TransFormat.Value := FORMAT(Amt,TransFormat.Length,Text1100010 + '2' + Text1100013);
TransFormat.Value := CONVERTSTR(DELCHR(TransFormat.Value,'=','.,'),' ','0');
TransFormat.Value := Negative + PADSTR('',TransFormat.Length - STRLEN(Negative) -
STRLEN(TransFormat.Value),'0') + TransFormat.Value;
END;
// End of the lines.
END;
TransFormat.MODIFY;
...