Class PO_PurchaseOrderDetail_bus

Properties

LOCAL cItmCommonFields$="PurchaseOrderNo$, LineKey$, LineSeqNo$"  
LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="PO_PurchaseOrderDetail"  
LOCAL cNoUpdateUI=-1  

Flag to not update into UI record when setting a partial record in the copy from process

LOCAL cAllowDeleteCopiedLine=isFALSE  
LOCAL cIsMaterialRequisition=isTRUE  
LOCAL cCopiedLineKeyCol$  
LOCAL cCopiedLineKeyFromCol$="MASTERREPEATINGORDERNO$"  
PROPERTY PoCopyMasterRepeatSrc$   * Read Only *
PROPERTY PoCopyMasterRepeatDest$   * Read Only *
PROPERTY PoCopySalesOrderSrc$   * Read Only *
PROPERTY PoCopySalesOrderDest$   * Read Only *
PROPERTY IsOrderInvoiced   * Read Only *

Methods

FUNCTION AccumulateBatchTotals()  
FUNCTION AddLine()  
FUNCTION CheckLinesForOrderStatus(changeOrderStatus$)  
FUNCTION CheckLinesFromSalesOrder()  
FUNCTION ClearSetFiles()  
FUNCTION ClearSetFileWorkTable(clearKey$)  

Clear Set File Work Table, overridden from PO_CommonEntryDetailVendor

ParameterDescription
clearKey$ [input, string] key value of detail line.
Returns [boolean] True
FUNCTION CopyInvoiceHistoryLines(invoiceKey$, copyOrderType$)  

Create purchase order lines from invoice lines in a/p invoice history sourced from p/o

ParameterDescription
invoiceKey$ [input, string] key to invoice history header record to create in purchase order entry
copyOrderType$ [input, string] Order type of purchase order to be created
FUNCTION CopyMasterRepeatingOrderLines(PONo$)  
FUNCTION CopyOrderHistoryLines(order$, type$)  

Create purchase order lines from a purchase order in history

ParameterDescription
order$ [input, string] purchase order number to copy
type$ [input, string] order type of purchase order to be created
Returns [boolean] True for success, False for failure
FUNCTION CopyOrderLines(order$, type$)  

Create purchase order lines from an existing purchase order

ParameterDescription
order$ [input, string] purchase order number to copy
type$ [input, string] order type of purchase order to be created
Returns [boolean] True for success, False for failure
FUNCTION CopyReceiptHistoryLines(receiptKey$, copyOrderType$)  
FUNCTION CopyReceiptHistoryLines(receiptKey$, copyOrderType$, poNumber$)  

Create purchase order lines from receipt lines in purchase order receipt history

ParameterDescription
receiptKey$ [input, string] key to receipt history header record to create in purchase order entry
copyOrderType$ [input, string] Order type of purchase order to be created
poNumber$ {optional} [input, string] applied purchase order number to copy receipt history detail from, when blank detail from all applied p/o's will be copied
FUNCTION CopySalesOrderLines(SoNo$, APDivNo$, VendNo$, CopyAllLines$, useVendorPricing)  
FUNCTION DeleteLine(LineKey$)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION SetCopyLines(boolean)  
FUNCTION SetExtensionColumn(orderType$)  
FUNCTION UpdateRequiredDate(oldReqDate$, reqDate$)  
FUNCTION ValidateAccumulateLines()  
FUNCTION ValidateGroupFAIntegration()  
FUNCTION ValidateGroupMPSetup()  
FUNCTION ValidateGroupNotMasterOrder()  
FUNCTION ValidateGroupNotMasterRepeating()  
FUNCTION ValidateGroupPOMasterOrder()  
FUNCTION ValidateGroupRepeatingOrder()  
FUNCTION ValidateGroupSOSetup()  
FUNCTION ValidateLines()  

Properties inherited from: CI_AssetTemplate_Val

AssetTemplates$, CheckForRequired, DropShipOrder, FAAccountKey$, FAIntegrateAP$, FAIntegratePO$, FAQuantity, FATemplateRequired$, FL_AllowAssetCreation, InheritedBy$, JobCostIntegrated$, POAccountKey$, POInvoiceRequiredForFA$, POQuantity$, WorkOrderIntegrated$

Properties inherited from: PO_CommonEntryDetailVendor

TaxClassWarningMsg$, WoFocusLastErrorMsg$, WoFocusLastErrorNum$, VendorPriceLevelExists

Methods inherited from: CI_AssetTemplate_Val

CheckForAssetTemplates(), ValidateAssetAccount(), ValidateGroupFAIntegration(), ValidateGroupFAKey(), ClassValidateAssetTemplate()

Methods inherited from: PO_CommonEntryDetailVendor

ValidateGroupAPSalesTax(), ValidateGroupJobNo(), AddIn(), Backout(), CheckIMItemVendor(), CheckVendorAliasItem(), GetTotalCols(), SetCurrentKey(), ValidateTaxClass()