Sales order history can be retained if the Retain Sales Order/Quote History check box is selected in the Sales Order Options window. In addition, you can retain deleted orders/quotes and deleted lines in orders/quotes that have been written to history as well. Cancellation codes that have been entered in Cancel and Reason Code Maintenance are also maintained in sales order/quote history; this code is entered when sales orders/quotes or lines are deleted.
In Sales Order Entry, a new sales order/quote is written to history when you click Accept. Any lines deleted before this are not saved in history. Additionally, if a new sales order is cancelled prior to it being accepted, it will not be saved in history.
The following types of changes to sales orders/quotes are retained in history.
Note History is not retained for master orders or repeating orders.
Line user-defined fields (UDFs) are written to sales order/quote history. If you are maintaining deleted lines, the line will remain in sales order/quote history, but the UDF will be deleted. If you are maintaining deleted orders in history, the line UDF will be maintained when you delete the order, until the order is purged using the Purge Order/Quote History task.