Class PO_ReturnDetail_bus

Properties

LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="PO_ReturnDetail"  
LOCAL cDistDstIOList$=CPL("IOLIST ReturnType$, ReturnNo$, LineKey$, ItemCode$, WarehouseCode$, QuantityReturned, Valuation$, UnitOfMeasureConvFactor, cLotSerRefDate$, cLotSerTransType")  
LOCAL cDistSrcIOList$=CPL("IOLIST ReturnType$, ReturnNo$, LineKey$, ItemCode$, WarehouseCode$, QuantityReturned, Valuation$, UnitOfMeasureConvFactor, header.ReturnDate$, lsTransRETURN")  
LOCAL cDistObject$  
LOCAL cDistQtyVar$="QuantityReturned"  
LOCAL cFieldsToSave$="IOLIST ReturnType$, ReturnNo$, LineKey$, LineSeqNo$, ItemCode$, ItemType$, rowStatus$"  
PROPERTY DistributeLine   * Read Only *
PROPERTY PoCopySrc$   * Read Only *
PROPERTY PoCopyDest$   * Read Only *

Methods

FUNCTION CopyInvoiceHistoryLines(invoiceKey$, allLines$)  

Create return 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 copy from
allLines$ [input, string] Y/N value, Y=set return quantity equal to quantity invoiced
Returns [boolean] True for success, False for failure
FUNCTION CopyOrderHistoryLines(poNo$, allLines$)  

Create return order lines from a purchase order in history

ParameterDescription
poNo$ [input, string] purchase order number to copy from
allLines$ [input, string] Y/N value, Y=set return quantity equal to quantity invoiced
Returns [boolean] True for success, False for failure
FUNCTION CopyPurchaseOrderLines(poNo$, returnComplete)  
FUNCTION CopyReceiptHistoryLines(receiptKey$, allLines$)  
FUNCTION CopyReceiptHistoryLines(receiptKey$, allLines$, poNumber$)  

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

ParameterDescription
receiptKey$ [input, string] key to receipt history header record to copy from
allLines$ [input, string] Y/N value, Y=set return quantity equal to quantity invoiced
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] True for success, False for failure
FUNCTION DistributionMissingInfo(distKey$, distRow, retLine$)  
FUNCTION GetBatchTotalVars(vars$)  
FUNCTION GetBatchTotalVars(vars$, reverse)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetQuantityOnHand(onHandQty)  
FUNCTION ResetPurchaseOrderRow()  
FUNCTION ResetRow(lineKey$)  
FUNCTION ResetRowsWithDistribution()  
FUNCTION RetrievePurchaseOrderLine()  
FUNCTION SetHeaderInfo()  
FUNCTION SetKey(key$)  
FUNCTION UpdateReturnBalanceBatchTotal(adjust)  
FUNCTION ValidateGroupFAIntegration()  
FUNCTION WRITE()  

Properties inherited from: PO_CommonEntryDetailVendor

TaxClassWarningMsg$, WoFocusLastErrorMsg$, WoFocusLastErrorNum$, VendorPriceLevelExists

Methods inherited from: CI_TaxClass_val

ClassValidateTaxClass()

Methods inherited from: PO_CommonEntryDetailVendor

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