ReturnReplaceItemRef::deleteReplaceSetup Method
Deletes return replacement setup if it exists for a return order line.
Syntax
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.
Exceptions
Exception | Condition |
---|---|
Error | The replacement order exists. |
Remarks
Return replacement setup cannot be deleted if the replacement order has been created.