InventTrans.insertReturnTransOrigin Method
Matches inventory transactions for return orders filling the ReturnInventTransOrigin field.
Syntax
public void insertReturnTransOrigin()
Run On
ClientOrServer
Exceptions
Exception | Condition |
---|---|
Error | An exception is raised if the item ID in the inventory transaction being matched is not the same as the item in the current transaction. -or- An exception is raised if the inventory dimensions in the inventory transaction being matched are not the same as the inventory dimensions in the current transaction. -or- An exception is raised if not all the required quantity could be matched to existing inventory transactions. |
Remarks
Note that we count remaining quantity in catch weight units if item is catch weight; otherwise, in inventory quantity.
If a transaction partially fulfills the returned order, it will be split to match it exactly.
This method is closely related to deleteReturnTransOrigin.