Share via


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

  • 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.

See Also

Reference

DOCommerceSyncProcessOrderTask Class