SalesInvoiceJournalCreate::checkDocumentDate_W Method [AX 2012]

Checks the date control options and provides warning or error messages.

server public static boolean checkDocumentDate_W(
    RecId _postalAddress, 
    TransDate _documentDate, 
    TransDate _deliveryDate, 
   [boolean _creditNote, 
    str _documentDateLabel, 
    str _deliveryDateLabel])

Run On

Server

Parameters

_postalAddress
Type: RecId Extended Data Type
A RecId value that specified link to delivery address.
_documentDate
Type: TransDate Extended Data Type
A document date value that is checked.
_deliveryDate
Type: TransDate Extended Data Type
A delivery date value that is used for calculation issue date.
_creditNote
Type: boolean
A boolean value that specified whether current document a credit note; true if document is a credit note, otherwise false; optional.
_documentDateLabel
Type: str
A string value that specified the name of Document date in UI.
_deliveryDateLabel
Type: str
A string value that specified the name of Delivery date in UI.

Return Value

Type: boolean
true if all checks are successful; otherwise, false and displays warning or error message.
Show: