ReturnReplaceItemRef::deleteReplaceSetup Method [AX 2012]

Deletes return replacement setup if it exists for a return order line.

client server public static boolean deleteReplaceSetup(SalesId _salesId, LineNum _lineNum)

Run On

Called

Parameters

_salesId
Type: SalesId Extended Data Type
The sales ID of sales return order.
_lineNum
Type: LineNum Extended Data Type
The return order line number.

Return Value

Type: boolean
true if the return replacement setup had been deleted; otherwise, false.

ExceptionCondition
Error

The replacement order exists.

Return replacement setup cannot be deleted if the replacement order has been created.

Show: