SalesLine::changeReturnOrderType Method

Creates or deletes inventory transactions related to Return orders.

Syntax

server public static void changeReturnOrderType(
    TradeInventTransId _inventTransId, 
   [WMSJournalTrans _wmsJournalTrans, 
    boolean _reverse])

Run On

Server

Parameters

  • _reverse
    Type: boolean
    A flag controlling whether inventory transactions should be created or deleted.

Exceptions

Exception Condition
Error

The specified Sales Order line could not be found. The operation is aborted.

-or-

The specified Sales order could not be found. The operation is aborted.

-or-

The specified Sales order is not of type Return order. The operation is aborted.

UpdateConflict

UpdateConflictNotRecovered

Remarks

By default, Return order lines are created without corresponding inventory trans actions. This method creates the transactions when they're needed for item arrival purpose and deletes them if they are created by mistake.

See Also

Reference

SalesLine Table