Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Generates the trace number by concatenating the journal number and line number to create a number that will be unique for most users.
Syntax
public str generateTraceNumber()
Run On
Server
Return Value
Type: str
The trace number.
Remarks
The concatenation is performed with the following limitations:
The line number part of the trace number will be at least four characters long. This allows for a minimum of 10,000 unique lines per journal.
If the journal number is shorter than 11 characters long, the number of characters that the line number uses will grow to fill the 15 characters allowed for the trace number.
If the journal number is longer than 11 characters, this method will use the right-most 11 characters from the journal number when it generates the trace number.
If the line number is more than 9999, the right-most four characters of the line number will be used.
If the line number is only four characters long, the numbers will wrap around to 0000 each 10,000 lines and increment from there. This will make this trace number non-unique and not suited for electronic reconcile, but sufficiently unique for most manual needs.
Examples:
Journal Number: 000097_003
Line Number: 1
Trace Number: "000097_00300001"
Journal Number: 1234567890_003
Line Number: 11036
Trace Number: "4567890_0031036"