DOCommerceSyncProcessOrderTask::validateAndCorrectSiteAndWarehouse Method [AX 2012]
Validates the site and warehouse of the order and corrects the site.
Syntax
client server private static boolean validateAndCorrectSiteAndWarehouse(
CLRObject _doSalesOrder,
DOCommonErrorList _doErrors,
str friendlyOrderId,
SysInfoAction action)
Run On
Called
Parameters
- _doSalesOrder
Type: CLRObject Class
The order to validate.
- _doErrors
Type: DOCommonErrorList Class
A list of errors.
- friendlyOrderId
Type: str
An order ID that will be added in a validation error message.
- action
Type: SysInfoAction Class
An instance of the SysInfoAction class that will be used when construction of the DOCommonErrorMessage class for validation errors.
Return Value
Type: boolean
true if the order contains a valid combination of site and warehouse; otherwise, false.