FUNCTION AccumulateMiscCharge(ExtensionAmt)    
 | 
 
FUNCTION ApplyPurchaseOrderAdd(tmpPurchaseOrder$)    
Add a purchase order to be applied to this receipt
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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
 
 | 
 
| Parameter | Description |  
    | 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()    
 |