Class PO_Receipt_Ui

Properties

LOCAL cOrderStatus$="1 Step, Change, Open, Back Order, Completed"  
LOCAL cBT_PrintTask$="PO_PurchaseOrderPrinting_ui"  
LOCAL cDeleted=isFALSE  
LOCAL cFirstScreenID=ReceiptNo.Ctl  
LOCAL cFirstTime=isTRUE  
LOCAL cFormGrid$="GD_LINES"  
LOCAL cGridViewPanel$="pLines"  
LOCAL cGridViewPanelExpand$="pLinesW"  
LOCAL cGridViewPanelNormal$="pLines"  
LOCAL cInquiryProgram=isFALSE  

If true, inquiry only. Set to true in PO_ReceiptOfGoodsInquiry_ui and PO_ReceiptOfInvoiceInquiry_ui.

LOCAL cResetFolder$="pHeader"  
LOCAL cResetFolderID=FLDR.PHEADER.CTL  

Methods

FUNCTION BT_RowReset()  
FUNCTION BT_RowResetAll()  
FUNCTION LOCAL AssignTotalsPanelVars()  
FUNCTION LOCAL Browse()  
FUNCTION LOCAL BT_ApplyPO()  

Button press logic to display Apply Purchase Orders To Receipt dialog

Returns [boolean] True = success
FUNCTION LOCAL BT_Batch()  
FUNCTION LOCAL BT_BatchTransfer()  

Transfer current document from this batch to another batch

Returns [boolean] True = success
FUNCTION LOCAL BT_Cancel()  
FUNCTION LOCAL BT_Prepayments()  

Button press logic to display Prepayments on Purchase Orders dialog

Returns [boolean] True = success
FUNCTION LOCAL BT_TaxDetail()  
FUNCTION LOCAL ChangeCM_AllocateLandedCost(gridCtl)  
FUNCTION LOCAL ChangeCM_UseTax(gridCtl)  
FUNCTION LOCAL ChangeCODAmt()  
FUNCTION LOCAL ChangeCodNo()  
FUNCTION LOCAL ChangeDB_AppliedPurchaseOrderNo(gridCtl)  

Change Applied Purchase Order Number Drop Box grid cell (Shown on grid when multiple PO's applied on receipt, only enabled on detail lines added)

ParameterDescription
gridCtl [input, numeric] Control ID for the grid being modified
Returns [boolean] True = success, False = failure.
FUNCTION LOCAL ChangeLB_Prepayments()  

Change logic for list box on the Prepayments dialog, this code prevents the DefaultChange() from executing

Returns [boolean] True = success
FUNCTION LOCAL ChangeML_PurchasesAccount(gridtCtl)  
FUNCTION LOCAL ChangeML_Vendor()  
FUNCTION LOCAL ChangePurchaseOrderNo()  
FUNCTION LOCAL ChangeReceiptNo()  
FUNCTION LOCAL ClassOnfocusGrid(gridCtl)  
FUNCTION LOCAL ConfirmDelete()  
FUNCTION LOCAL DisplayWriteError(busObj)  
FUNCTION LOCAL EnableOtherControls(gridCtl, row)  
FUNCTION LOCAL EnablepAddressControls()  
FUNCTION LOCAL EnablepHeaderControls()  
FUNCTION LOCAL EnablePTotalsControls()  
FUNCTION LOCAL PERFORM GetVendorStatus()  

Gets the VendorStatus of the Vendor on the Purchase Order

Returns [boolean] Success
FUNCTION LOCAL InvoiceWarnings()  
FUNCTION LOCAL LoadGrid(gridCtl)  

Overload of base class LoadGrid(), required for loading grid for multiple PO on Receipt

ParameterDescription
gridCtl [input, numeric] Control ID for the grid to be loaded
Returns [boolean] True = success, False = failure
FUNCTION LOCAL LoadGridDropBoxes(gridCtl, row)  
FUNCTION LOCAL OnExitpHeader()  
FUNCTION LOCAL OnExitpHeaderW()  
FUNCTION LOCAL OnFocusBt_Accept()  
FUNCTION LOCAL OnFocusML_Vendor()  

Saves original value of ML_Vendor$

Returns [boolean] Success
FUNCTION LOCAL PostLoad()  
FUNCTION LOCAL PostLoadpAddress()  
FUNCTION LOCAL PostLoadpAddressW()  
FUNCTION LOCAL PostLoadpHeader()  
FUNCTION LOCAL PostLoadpHeaderW()  
FUNCTION LOCAL PostLoadpLines()  
FUNCTION LOCAL PostLoadpLinesW()  
FUNCTION LOCAL PostLoadpTotals()  
FUNCTION LOCAL PostLoadpTotalsW()  
FUNCTION LOCAL PostReadRec()  
FUNCTION LOCAL PO_InvoiceRequired()  
FUNCTION LOCAL PERFORM RejectPurchaseOrder()  

Rejects the selected Purchase Order

Returns [boolean] Failure
FUNCTION LOCAL SetGridColumns(gridCtl, row, editLine)  
FUNCTION LOCAL SetPurchaseOrderUIVariables()  
FUNCTION LOCAL ShowAlternateItem()  
FUNCTION LOCAL ShowAlternateWarehouse()  
FUNCTION LOCAL ShowPriceLevel()  
FUNCTION LOCAL ShowReorder()  
FUNCTION LOCAL TranslateColumns()  

Logic to execute to translate row data

Returns [boolean] True, always returns success