Share via


WHSInventStatus::allowCreatePlannedOrderOrForecast Method

Determines if a planned order or forecast can be created with the given status.

Syntax

client server private static boolean allowCreatePlannedOrderOrForecast(
    WHSInventStatusId _inventStatusId, 
    str _warningIfNotAllowed, 
   [boolean _showWarning])

Run On

Called

Parameters

  • _warningIfNotAllowed
    Type: str
    A warning message to showifcreatin a planned order or forecast is not allowed.
  • _showWarning
    Type: boolean
    A Boolean value that indicates if a a warning should be shown in the infolog; optional.

Return Value

Type: boolean
true if a planned order or forecast can be created with the given status; otherwise, false.

See Also

Reference

WHSInventStatus Table