ProdStatusType_Completed.runStatusDecrease Method [AX 2012]

Decreases the status of a completed production order.

public boolean runStatusDecrease(
    ProdParmStatusDecrease _prodParmStatusDecrease, 
   [boolean _ask, 
    RunbaseRecsMapable _multi])

Run On

Called

Parameters

_prodParmStatusDecrease
Type: ProdParmStatusDecrease Table
The production status decrease parameter. This parameter is disregarded by the method.
_ask
Type: boolean
A Boolean value that indicates whether the method is only asked if status decreasing is allowed; optional.
_multi
Type: RunbaseRecsMapable Interface
A RunbaseRecsMapable parameter. This parameter is disregarded by the method; optional.

Return Value

Type: boolean
false if the _ask parameter is true; otherwise, throws an exception.

ExceptionCondition
Error

A completed production order does not allow status decreasing.

When status of a completed production order is being decreased, this method always throws an exception, because as soon as the production order is completed, status decreasing is no longer allowed.

Community Additions

ADD
Show: