This method is used to confirm that the current date is not earlier than the last date this autonumbering code was used.
Syntax
server public static boolean checkLastDate(
LtDocNumberingCode _code,
TransDate _date,
[boolean _warning])
Run On
Server
Parameters
- _code
Type: LtDocNumberingCode Extended Data Type
The autonumbering code for which the date needs to be checked.
- _date
Type: TransDate Extended Data Type
The date being confirmed.
- _warning
Type: boolean
Boolean value indicating whether a warning message should be thrown or not.
Return Value
Type: boolean
false, if the LastTransDate is greater than the current date being verified.