SalesLine.returnLineResetToExpected Method [AX 2012]

Updates the return related fields in the product cancel registration scenario.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          public void returnLineResetToExpected(InventQtyRegistered _qtyRegistered, PdsCWQtyRegistered _cwQtyRegistered)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void returnLineResetToExpected(InventQtyRegistered _qtyRegistered, PdsCWQtyRegistered _cwQtyRegistered)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void returnLineResetToExpected(InventQtyRegistered _qtyRegistered, PdsCWQtyRegistered _cwQtyRegistered)

  Microsoft Dynamics AX 2012 (FPK)
          public void returnLineResetToExpected(InventQtyRegistered _qtyRegistered)

  Microsoft Dynamics AX 2012 (SYS)
          public void returnLineResetToExpected(InventQtyRegistered _qtyRegistered)

Run On

Called

Parameters

_qtyRegistered
Type: InventQtyRegistered Extended Data Type
An InventQtyRegistered data type.
_cwQtyRegistered
Type: PdsCWQtyRegistered Extended Data Type
A registered quantity in catch weight unit.

ExceptionCondition
Error

Only lines that have return status registered can be reset to status open.

-or-

Only negative quantities can be register canceled.

Show: