Class PO_PurchaseOrderHistory

Properties

LOCAL cHistoryFreightChange=isFALSE  

variable to flag that the field amount has changed for current document

LOCAL cHistoryRecalcTaxes=isFALSE  
variable to flag the need to recalculate taxes for current document
LOCAL cHistorySchedChange=isFALSE  
variable to flag that the tax schedule has changed for current document
PROPERTY AP_SalesTaxReporting$   * Read Only *
Sales Tax Reporting field value from Accounts Payable Options
PROPERTY HistoryUpdated   * Read Only *
property to flag that an order has been updated in history
PROPERTY OrderInHistory   * Read Only *
property to flag whether an order exists in the history table
PROPERTY OrderLineInHistory   * Read Only *
property to flag whether a line exists in the history detail table
PROPERTY PO_RetainDeletedPurchaseOrders$   * Read Only *
Retain Deleted Purchase Orders field value from Purchase Order Options
PROPERTY PO_RetainDeletedLines$   * Read Only *
Retain Deleted Purchase Order Lines field value from Purchase Order Options
PROPERTY PO_RetainPurchaseOrderHistory$   * Read Only *
Retain Purchase Order History field value from Purchase Order Options
PROPERTY PrecisionQty   * Read Only *
number of decimal places to use in quantity fields
PROPERTY PrecisionCost   * Read Only *
number of decimal places to use in cost fields
PROPERTY SaveDeleted  
property set externally by ui class of inheriting class to flag that a deleted order should be saved in history
PROPERTY SaveDeletedReason$  
property set externally by ui class of inheriting class that will contain the Cancel / Reason Code selected by user
PROPERTY TaxExemptionChanged  
property to flag whether the tax exemption information has changed for current document

Methods

FUNCTION AddInHistory(order$, historySeq$, lineRec$, lineIOL$)  

Add detail line into History

ParameterDescription
order$ [input, string] purchase order number.
historySeq$ [input, string] history sequence for detail line.
lineRec$ [input, string] detail line record data.
lineIOL$ [input, string] detail line iolist.
Returns [boolean] True
FUNCTION BackOutHistory(order$, historySeq$, fromDelete)  
FUNCTION BackOutHistory(order$, historySeq$, fromDelete, cancelNewLine)  

Back Out detail line from History

ParameterDescription
order$ [input, string] purchase order number.
historySeq$ [input, string] history sequence for detail line.
fromDelete [input, boolean] is detail line being deleted.
cancelNewLine {optional} [input, boolean] is detail line a new line being cancelled.
Returns [boolean] True for success, False for failure
FUNCTION CheckForHistoryLine(order$, historySeq$)  

Check if a purchase order detail line is in history

ParameterDescription
order$ [input, string] purchase order number.
historySeq$ [input, string] history sequence for detail line.
Returns [boolean] True if purchase order detail line is in history, False if it is not
FUNCTION SetupRetainHistory()  

Setup information that needs to be done whether coming from conversion or utility. From conversion needs to be done outside of ON_CREATE

Returns [boolean] True
FUNCTION UpdateDetailLineDescription(order$, histSeq$, itmDesc$, extDescKey$)  

Update purchase order detail line item description and extended description key

ParameterDescription
order$ [input, string] purchase order number.
historySeq$ [input, string] history sequence for detail line.
itmDesc$ [input, string] item description value.
extDescKey$ [input, string] extended description key value.
Returns [boolean] True
FUNCTION LOCAL CheckForHistory(order$)  

Check if a purchase order number is in history table

ParameterDescription
order$ [input, string] purchase order number.
Returns [boolean] True if purchase order number is in history, False if it is not
FUNCTION LOCAL DeleteOrderHistory(orderRec$, orderIOL$)  

Delete purchase order from history

ParameterDescription
orderRec$ [input, string] order record data.
orderIOL$ [input, string] order iolist.
Returns [boolean] True
FUNCTION LOCAL SetHistoryCommonTaxInfo()  

Set Common Tax Information for history tax tables in system sales tax calculation object

Returns [boolean] True
FUNCTION LOCAL WriteOrderHistory(orderRec$, orderIOL$, type$)  

Write purchase order into history

ParameterDescription
orderRec$ [input, string] order record data.
orderIOL$ [input, string] order iolist.
type$ [input, string] A=Add, C=Complete, X=add deleted.
Returns [boolean] True for success, False for failure