Class SO_SalesOrderHistory

Properties

LOCAL cHistoryDiscountChange=isFALSE  
LOCAL cHistoryFreightChange=isFALSE  
LOCAL cHistoryRecalcTaxes=isFALSE  
LOCAL cHistorySchedChange=isFALSE  
PROPERTY AR_SalesTaxReporting$   * Read Only *
PROPERTY HistoryUpdated   * Read Only *
PROPERTY OrderInHistory   * Read Only *
PROPERTY OrderLineInHistory   * Read Only *
PROPERTY PrecisionQty   * Read Only *
PROPERTY PrecisionPrice   * Read Only *
PROPERTY SaveDeleted  
PROPERTY SaveDeletedReason$  
PROPERTY SO_AllowDiscountRate$   * Read Only *
PROPERTY SO_RetainDeletedSalesOrders$   * Read Only *
PROPERTY SO_RetainDeleteLines$   * Read Only *
PROPERTY SO_RetainOrderQuoteHistory$   * Read Only *
PROPERTY SO_UseShippingCode$   * Read Only *
PROPERTY TaxExemptionChanged  

Methods

FUNCTION AddInHistory(order$, historySeq$, lineRec$, lineIOL$)  
FUNCTION BackOutHistory(order$, historySeq$, fromDelete)  
FUNCTION BackOutHistory(order$, historySeq$, fromDelete, cancelNewLine, oldWeight)  
FUNCTION CheckForHistoryLine(order$, historySeq$)  
FUNCTION CompleteHistory(order$, invRec$, invIOL$)  
FUNCTION CompleteLineHistory(order$, historySeq$, invRec$, invIOL$)  
FUNCTION UpdateDetailLineDescription(order$, histSeq$, itmDesc$, extDescKey$)  
FUNCTION LOCAL ChangeHistoryExemption(order$, amtFields$)  
FUNCTION LOCAL CheckForHistory(order$)  
FUNCTION LOCAL DeleteOrderHistory(orderRec$, orderIOL$)  
FUNCTION LOCAL SetHistoryCommonTaxInfo()  
FUNCTION LOCAL WriteOrderHistory(orderRec$, orderIOL$, type$)  
FUNCTION LOCAL WriteOrderHistory(orderRec$, orderIOL$, type$, invRec$, invIOL$)  

Write sales order history

ParameterDescription
orderRec$ [input, string] order header record
orderIOL$ [input, string] order header iolist
type$ [input, string] "A" - active or "X" - deleted
invRec$ {Optional} [input, string] invoice header record
InvIOL$ {Optional} [input, string] invoice header iolist
Returns [boolean] returns success (1) or failure (0)