Share via


InventReleaseOrderPickingForm_Transfer.bldInventReleaseOrderPickingTmp Method [AX 2012]

Builds the InventTransferReleaseOrderPickingTmp temporary table.

Syntax

public void bldInventReleaseOrderPickingTmp(container _packedQueryRun)

Run On

Server

Parameters

  • _packedQueryRun
    Type: container
    A packed QueryRun object.

Remarks

First, the OrderLines are selected from the inventTransferLine table, in the period of the variables shippingDateFrom and shippingDateTo.

For each OrderLine that meets the criteria, the following is performed:

The quantity with status reserved ordered is calculated in the variable qtyReservedOrdered and the method findQtyReservedOrdered. This variable is later deducted from the variable qtyRemainToDeliver.

The quantity remain to deliver is calculated in the variable qtyRemainToDeliver.

If qtyAvailPhysical > 0, which means that stock is on hand, and if qtyRemainToDeliver > 0, which means that there is more to deliver on this sales line, the line will be selected and inserted in the temporary table.

The next section builds the temporary table with following fields:

  • RecId from inventTransferLine.

  • TransferId from inventTransferLine.

  • AllOrdersDeliverable, by using the allOrdersDeliverable method, which determines whether all orders with this item and dimension can be delivered.

  • NeedAllocation, by using the needAllocation method, which determines whether some orders, with this item and dimension, can be delivered and need allocation.

  • ProductionOrderExist, by using the productionOrderExist method, which indicates whether a production order exists for this item.

  • SalesOrderExist, via the InventTransferReleaseOrderPickingForm.salesOrderExist method, which indicates whether a transfer order exists for this item.

Finally, the delivery percentage for the whole order is calculated by using the DeliverPossiblePctCalc method.

See Also

Reference

InventReleaseOrderPickingForm_Transfer Class