Share via


SalesLine::splitReturnLine Method

Splits a return order line into two return order lines.

Syntax

Note

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

  Microsoft Dynamics AX 2012 R3
          client server public static InventTransId splitReturnLine(
            TradeInventTransId _inventTransId, 
            SalesQty _newQtyOrdered, 
           [PdsCWInventQty _newCWQty])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static InventTransId splitReturnLine(
            TradeInventTransId _inventTransId, 
            SalesQty _newQtyOrdered, 
           [PdsCWInventQty _newCWQty])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static InventTransId splitReturnLine(
            TradeInventTransId _inventTransId, 
            SalesQty _newQtyOrdered, 
           [PdsCWInventQty _newCWQty])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static InventTransId splitReturnLine(TradeInventTransId _inventTransId, SalesQty _newQtyOrdered)

  Microsoft Dynamics AX 2012 (SYS)
          client server public static InventTransId splitReturnLine(TradeInventTransId _inventTransId, SalesQty _newQtyOrdered)

Run On

Called

Parameters

Return Value

Type: InventTransId Extended Data Type
The inventory transaction ID for a new return order line.

Exceptions

Exception Condition
Error

The specified sales order line could not be found, or is not a return order.

UpdateConflictNotRecovered

An update conflict exception occurred and the action was not registered.

UpdateConflict

An update conflict occurred.

Remarks

A split can only be done on a return order line.

See Also

Reference

SalesLine Table