ProdUpdHistoricalCost::checkNoProdEndBeforeConsumption Method [AX 2012]

Checks that the financial update of the production order does not occur before any physical updates of the inventory or route transactions related to the production order.

server public static boolean checkNoProdEndBeforeConsumption(
    ProdId _prodId, 
    TransDate _prodEndDate, 
   [ProdTable _prodTable])

Run On

Server

Parameters

_prodId
Type: ProdId Extended Data Type
A production order ID that it is to be ended.
_prodEndDate
Type: TransDate Extended Data Type
An ending date of the production order.
_prodTable
Type: ProdTable Table
A production order table buffer is used in the search for inventory transactions of the production order; optional.
Set this parameter for better performance. If the parameter is not set, the production order table buffer will be found using _prodId parameter; optional.

Return Value

Type: boolean
A Boolean value that indicates whether the check is successfull and the production order can be ended or not.
Show: