2.3.6. Batch Number Generator for Sales Return
Extension: Generates Batch Number for Sales Return Based on Format
Can the user change the generated batch number? (Y/N)
Option to whether or not the user will be able to change the generated batch number during the production process.
The current sequential number
Field that holds the current serial number.
The date format to reset sequential number
Defines the date format on what the sequential number will be reset. In the example above the sequential number fill be reset when the month changes.
The format
Defines the format of the generated batch numbers.
A tag starts with ‘[‘ and ends with ‘]’. Inside a tag the first part is the identifier of the type of value that needs to be entered. Next is a ‘:’ to split the identifier and the value of the identifier.
Possible tags in the format:
- [Date:yyMMdd] or [D:yyMMdd]
Date: This will be replaced by the date format provided in the value of the identifier. All windows allowed formats are allowed. It will perform the method DateTime.ToString(string value) of Windows. - [DayOfYear:3] or [DY:3]
Date: This will be replaced by the day of year. The value indicates the minimum length the processed value should have. The fill character is ‘0’. So if the day of year is 99, and value is 3, the processed value will be 099. - [X:4]
Sequential number: This will be replaced by the sequential number. The value indicates the minimum length the processed value should have. The fill character is ‘0’. So if the sequential number is 99, and value is 4, the processed value will be 0099.
The update date for sequential number
The last update date in the specified format. This is used to know when the sequential number needs to be reset.