Class PO_Return_Bus

Properties

LOCAL cApplyDiscFreightOnly$="F"  
LOCAL cApplyDiscTaxOnly$="S"  
LOCAL cBatchType$="02"  
LOCAL cBatchTotalVars$="ReturnBalance"+SEP+"TaxableAmt"+SEP+"NonTaxableAmt"+SEP+"ReturnedDepositAmt"+SEP+"DiscountAmt"+SEP+"FreightAmt"+SEP+"SalesTaxAmt"  
LOCAL cDetailFromIol$  
LOCAL cDetailToIol$  
LOCAL cFromPurchaseOrderIolist$  
LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="PO_ReturnHeader"  
LOCAL cMemoType$="03"  

memo type for P/O Return memos

LOCAL cPOOptions$=", AllowEntryOfTaxAndFreight$, ApplyDiscountsToFreightAndTax$"  
LOCAL cPOType$="Return Order"  
LOCAL cRestartFile$  
LOCAL cToReturnIolist$  
LOCAL cValidOrderType$  
LOCAL cDefaultServiceObject$="PO_ReturnDefaults_Svc"  
PROPERTY AP_TrackDetailedInvPaymentHist$   * Read Only *
current setting of Track Detailed Invoice/Payment History field in A/P Options
PROPERTY CompletedPO   * Read Only *
PROPERTY CopiedPO   * Read Only *
PROPERTY GeneratingOrders  
PROPERTY PO_ApplyDiscountsToFreightAndTax$   * Read Only *
PROPERTY PO_AllowEntryOfTaxAndFreight$   * Read Only *
PROPERTY PO_PrintReturnOrder$  
PROPERTY PO_RetainPurchaseOrderHistory$   * Read Only *
current setting of Retain Purchase Order History field in P/O Options
PROPERTY PO_RetainReceiptHistory$   * Read Only *
current setting of Retain Receipt History field in P/O Options
PROPERTY FaxNo$   * Read Only *
PROPERTY InvoiceExists   * Read Only *
PROPERTY ReceiptExists$   * Read Only *
PROPERTY ReturnComplete   * Read Only *
PROPERTY ValidationMessageQueue$  
PROPERTY VendorStatusErrorMsg$   * Read Only *
Error message for inactive Vendor during copy from process

Methods

FUNCTION AccumulateMiscCharge(ExtensionAmt)  
FUNCTION CopyFromInvoiceHistory(invoiceKey$, allLines$)  

Create 1-step return of goods from an A/P invoice history invoice sourced from P/O

ParameterDescription
invoiceKey$ [input, string] key to invoice history header record to copy data from to create ROG
allLines$ [input, string] Y/N value, Y=set return quantity for all lines copied from source
Returns [numeric] 1 for success, 0 for failure, -1 for warning
FUNCTION CopyFromOrderHistory(order$, allLines$)  

Create 1-step return of goods from purchase order in history

ParameterDescription
order$ [input, string] purchase order number to copy data from to create ROG.
allLines$ [input, string] Y/N value, Y=set return quantity for all lines copied from source
Returns [boolean] 1 for success, 0 for failure.
FUNCTION CopyFromPurchaseOrder(poNumber$)  
FUNCTION CopyFromReceiptHistory(receiptKey$, allLines$)  
FUNCTION CopyFromReceiptHistory(receiptKey$, allLines$, poNumber$)  

Create 1-step return of goods from receipt in purchase order receipt history

ParameterDescription
receiptKey$ [input, string] key to receipt history header record to copy data from to create ROG
allLines$ [input, string] Y/N value, Y=set return quantity for all lines copied from source
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
Returns [boolean] 1 for success, 0 for Failure
FUNCTION CopyPurchaseOrderLines()  
FUNCTION CopyPurchaseOrderLines(returnComplete)  
FUNCTION DELETE(key$)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetNextReturnNo(tmpReturnNo$)  
FUNCTION SetBrowseFilter()  
FUNCTION UpdateForFreightAllocation(amt)  
FUNCTION ValidateCopyFrom(copyFrom$, copyFromNo$, copyFromRcpt$, copyKey$)  
FUNCTION ValidateCopyFrom(copyFrom$, copyFromNo$, copyFromRcpt$, copyKey$, multiPO$)  

Validate Copy From values

ParameterDescription
copyFrom$ [input, string] copy from source.
copyFromNo$ [input/output, string] copy from document number, if copyKey$ is being passed in, copyFromNo$ becomes an output value.
copyFromRcpt$ [input/output, string] copy from receipt type and number (if copy from receipt history), if copyKey$ is being passed in, copyFromRcpt$ becomes an output value.
copyKey$ [input/output, string] key value of record to copy. If value is passed in it will be validated and take precedence over any value passed into copyFromNo$ and copyFromRcpt$.
multiPO$ {optional} [output, string] multiple p/o's applied for copy from, Y or N
Returns [boolean] True for success, False for failure
FUNCTION Write()  

Properties inherited from: PO_CommonEntryVendor

cSetTaxCols$, cTaxModule$, cVendorOtherColumns$, cVendorSavedColumns$, cVendorPurchaseAddressColumns$, cPOHeaderPurchaseAddressColumns$, AddPurchaseAddressOnTheFly, AccumulateMiscChargeTotal, AP_Divisions$, AP_CalcSalesTaxInAPDataEntry$, AP_Enable1099Reporting$, AP_ExpenseFreightSeparately$, AP_SalesTaxReporting$, CreateEntry, CalculateTax, DeleteReceipt, FaxNo$, SalesTaxCalcObj, TelephoneNo$, TelephoneExt$, TelephoneType$, ConfirmTo$, SalesTaxExemptionNoOnFile$

Methods inherited from: CI_TierCostCalc

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

Methods inherited from: PO_CommonEntryVendor

AccumulateMiscCharge(), CLEAR(), ClearPurchaseOrderAddress(), DELETE(), OpenSalesTaxCalc(), SalesTaxCalculation(), SalesTaxRecalculation(), SetCommonTaxInfo(), SetTaxDetail(), Write(), ChangeTaxForFreight(), CheckTaxInfo(), DeleteTax(), DoTermsInfo(), GetConfirmTo(), GetPhone(), GetVendorFields(), PostFind(), PreWrite(), SetChildColl(), SetCurrentKey(), SetTax(), ValidateAPDivisionNo(), ValidateForm1099(), ValidateFreightAmt(), ValidateGroupAPDivisionRequired(), ValidateGroupAPSalesTax(), ValidateGroupTen99(), ValidateGroupVendorReq(), ValidatePrepaidFreightAmt(), ValidatePurchaseAddressCode(), ValidateTaxSchedule(), ValidateTermsCode(), ValidateUseTax(), ValidateVendorNo()