Class PO_Receipt_Bus

Properties

LOCAL cBatchModule$="P/O"  
LOCAL cBatchType$  
LOCAL cBatchTotalVars$="BalanceTotal"+SEP+"TaxableAmt"+SEP+"NontaxableAmt"+SEP+"PrepaidFreightAmt"+SEP+"DiscountAmt"+SEP+"FreightAmt"+SEP+"SalesTaxAmt"  
LOCAL cClearGoodsPOColumns$=CPL("IOLIST PrepaidCheckNo$, InvoiceDueDate$, DiscountDueDate$, CODNo$, PrepaidAmt, DiscountAmt, CODAmt")  
LOCAL cApplyDiscFreightOnly$="F"  
LOCAL cApplyDiscTaxOnly$="S"  
LOCAL cFromPurchaseOrderIolist$  
LOCAL cLandedCostKeyFieldsToSet$  
LOCAL cMainTable$="PO_ReceiptHeader"  
LOCAL cMemoType$="02"  

memo type for P/O Receipt memos

LOCAL cPOOptions$=", ApplyDiscountsToFreightAndTax$, AllowEntryOfTaxAndFreight$, "+"AllowQtyRecGreaterQtyOrd$, AutoClosePartialReceivedPOs$, "+"ReceiptVarianceToClosePOLines, YearsToRetainPurchasesHist, "+"DefaultBankCode$, AllowEntryOfTaxAndFreight$"  
LOCAL cPOType$="Receipt"  
LOCAL cRestartFile$  
LOCAL cToReceiptIolist$  
LOCAL cWriteRequiredValue$="PrepaidAmt"+SEP+"TaxableAmt"+SEP+"NonTaxableAmt"+SEP+"SalesTaxAmt"+SEP+"FreightAmt"+SEP+"PrepaidFreightAmt"+SEP+"DiscountAmt"+SEP+"CODAmt"+SEP  
LOCAL cDefaultServiceObject$="PO_ReceiptDefaults_Svc"  
LOCAL cValidOrderType$  
PROPERTY AllowRecInvCompleteOrder   * Read Only *
PROPERTY AP_TrackDetailedInvPaymentHist   * Read Only *
PROPERTY AppliedPurchaseOrderNos$  
list of purchase order numbers that have been applied to this receipt
PROPERTY ApplyPurchaseOrdersValidation$  
apply purchase orders validation conditions based on primary Purchase Order Number
PROPERTY AutoUpdateLandedCostFreight$   * Read Only *
PROPERTY BatchSubType$   * Read Only *
PROPERTY CalculateDiscount  
PROPERTY CalculatePrepayment   * Read Only *
PROPERTY CompletedPO   * Read Only *
PROPERTY CopiedPO   * Read Only *
PROPERTY DropShipOrder   * Read Only *
PROPERTY GoodsInvReceiptType$   * Read Only *
PROPERTY PO_AllowEntryOfTaxAndFreight$   * Read Only *
PROPERTY PO_AllowQtyRecGreaterQtyOrd$   * Read Only *
PROPERTY PO_ApplyDiscountsToFreightAndTax$   * Read Only *
PROPERTY PO_AutoClosePartialReceivedPOs$   * Read Only *
PROPERTY PO_DefaultBankCode$   * Read Only *
PROPERTY PO_LandedCostReceiptObj  
PROPERTY PO_ReceiptVarianceToClosePOLines   * Read Only *
PROPERTY PO_YearsToRetainPurchasesHist   * Read Only *
PROPERTY PrepaidAmtAvailable   * Read Only *
PROPERTY ReceiptExists$   * Read Only *
PROPERTY ReceiveComplete   * Read Only *
PROPERTY SaveOrderTotal   * Read Only *
PROPERTY UtilityProcessing  
PROPERTY PurchaseOrderNo$   * Read Only *

Methods

FUNCTION AccumulateMiscCharge(ExtensionAmt)  
FUNCTION ApplyPurchaseOrderAdd(tmpPurchaseOrder$)  

Add a purchase order to be applied to this receipt

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to add
Returns [boolean] True = success, False = failure, -1 = warning
FUNCTION ApplyPurchaseOrderCancel(tmpCancelReceipt)  

Cancel selections of purchase orders to be applied to this receipt

ParameterDescription
tmpCancelReceipt [input,boolean] True = cancel all p/o selections for receipt entry, False = cancel only new p/o selections where lines have not been copied
Returns [boolean] True = success
FUNCTION ApplyPurchaseOrderCopyLines(copyCount)  

Copy lines for all purchase orders selected to be applied to this receipt

ParameterDescription
copyCount [output,integer] number of purchase orders that had lines copied to receipt
Returns [boolean] True = success, False = failure
FUNCTION ApplyPurchaseOrderRemove(tmpPurchaseOrder$)  

Remove a purchase order from selections to be applied

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to remove
Returns [boolean] True = success, False = failure
FUNCTION ApplyPurchaseOrderUpdate(tmpPurchaseOrder$, tmpLinesCopied$, tmpReceiveComplete$, tmpInvoiceComplete$)  

Update purchase order to apply selection

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to update
tmpLinesCopied$ [input,string] Y/N, have the lines from the p/o been copied to the receipt detail?
tmpReceiveComplete$ [input,string] Y/N, when copying the lines from the p/o to the receipt detail should the received quantity be set to ordered quantity?
tmpInvoiceComplete$ [input,string] Y/N, when copying the lines from the p/o to the receipt detail should the invoiced quantity be set to ordered quantity?
Returns [boolean] True = success, False = failure
FUNCTION CalculatePrepaymentApplied()  
FUNCTION CheckApplyPurchaseOrderNo(tmpPurchaseOrder$)  

Check Purchase Order Number to Apply, validate value and check against primary purchase order number selected

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to check
Returns [boolean] True = success, False = failure
FUNCTION CheckMergeBatch(sourceSubType$, destSubType$)  
FUNCTION CheckPrepaidClear()  
FUNCTION CheckPrepaymentCalcRequired()  
FUNCTION CheckPurchaseOrder()  
FUNCTION Clear()  

Clear current record

Returns [boolean] True = success, False = failure
FUNCTION ClearFreight()  
FUNCTION CopyFromPurchaseOrder(poNumber$)  
FUNCTION CopyPurchaseOrderLines()  
FUNCTION CopyPurchaseOrderLines(receiveComplete)  
FUNCTION CopyPurchaseOrderLines(receiveComplete, PONo$)  

Copy Purchase Order Lines into the receipt entry

ParameterDescription
receiveComplete {optional}[input,boolean] true=receive lines complete, false=do not receive lines complete
PONo$ {optional}[input,string] purchase order number to copy from, if blank the primary purchase order number will be used
Returns [boolean] True = success, False = failure
FUNCTION DELETE(key$)  
FUNCTION DeleteBatch(batch$, curSubType$)  
FUNCTION GetApplyPurchaseOrderHistory(tmpPurchaseOrder$, tmpPOList$, tmpReceiptType$, tmpReceiptNo$, tmpHeaderSeqNo$)  

Get receipt of goods (ROG) history information for a purchase order number

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to get ROG history for
tmpPOList$ [output,string] list of purchase orders that were received
tmpReceiptType$ [output,string] receipt type of entry
tmpReceiptNo$ [output,string] receipt number of entry
tmpHeaderSeqNo$ [output,string] header sequence number of entry in history
Returns [boolean] True = if ROG history found, False = if no ROG history found
FUNCTION GetApplyPurchaseOrderRecord(tmpPurchaseOrder$, tmpRec$, tmpIOL$)  

Get apply purchase order record

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to get record for
tmpRec$ [output,string] record
tmpIOL$ [output,string] iolist of fields
Returns [boolean] True = if record found, False = if no record found
FUNCTION GetApplyPurchaseOrderStatus(tmpPurchaseOrder$)  

Get apply purchase order status

ParameterDescription
tmpPurchaseOrder$ [input,string] purchase order number to get status of
Returns [integer] 0 = purchase order has not been applied to receipt, 1 = purchase order has been applied, 2 = purchase order is newly applied
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetNextNextInvoiceEntryNo(value$)  
FUNCTION GetNextReceiptNo(value$)  
FUNCTION ResetAllCopyLines()  

Reset All for a new receipt, copy lines for all purchase orders

Returns [boolean] True = success
FUNCTION ResetLandedCost()  
FUNCTION SetBrowseFilter()  
FUNCTION SetKey(key$)  
FUNCTION UpdateForFreightAllocation(amt)  
FUNCTION ValidateGroupMultiplePO()  

Validate Group Muliple PO precludes changing the column value once multiple purchase orders have been applied to a receipt

Returns [boolean] False (0) when multiple purchase orders applied on receipt, true (1) when one or no purchase orders applied on receipt
FUNCTION ValidBatch(curSubTypeBatch$, subTypeBatch$)  
FUNCTION Write()  

Properties inherited from: CI_AssetTemplate_Val

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

Methods inherited from: CI_AssetTemplate_Val

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

Methods inherited from: CI_BankCode_val

ClassValidateBankCode()

Methods inherited from: CI_TierCostCalc

CalcCost(), ClearCCByBatch(), ClearCCByDeKey(), ClearCCByJournal(), ClearCCWorkFile(), PERFORM ClearCommits(), PERFORM PostTableReadCI_TierCostCalc(), PERFORM PreNextRecordCI_TierCostCalc(), PERFORM PreTableWriteCI_TierCostCalc(), PERFORM ProcessTierDistribution()