Class AP_CommonEntryDetail

Properties

PROPERTY AP_IntegrateJobCost$   * Read Only *
PROPERTY HeaderComment$  
PROPERTY DistributionTotal  
PROPERTY EnableExpenseDistTables$  
PROPERTY AutoDistributionTable  
PROPERTY HeaderTableCode$  
PROPERTY PMIntegratedAP   * Read Only *

Boolean set to true (1) when the PM Option integrate to AP has been selected Note: This value must be explicitly set in parent busObj and is not set here so PMIntegratedAP will not be set in implementations that do not contain PM

PROPERTY WorkTicketStatusesAllowed$   * Read Only *

[string] String to store the list of Work Ticket Statuses allowed to be included (defaults to 'Q'uote/Estimate, 'R'eleased and 'C'losed, excluding 'O'pen and 'X'deleted)

PROPERTY WorkTicketStatus$   * Read Only *

[string] String to store the work ticket status of the work ticket assigned to a detail line

Methods

FUNCTION Clear()  

Function overridden from SY_Maint, overridden to release user count.

Returns value from the call to the base class.
FUNCTION DistributeBalance()  
FUNCTION Find(key$)  
FUNCTION GetStepLineKey$(workTicket$, step$)  

Function returns the step line key for the given work ticket and step number

ParameterDescription
workTicket$ [input, string] work ticket number that the step belongs to
step$ [input, string] step number on the work ticket.
Returns [string] returns the StepLineKey$ for the given work ticket and step number.
FUNCTION GetStepNumber$(workTicket$, stepKey$)  

Function will lookup the given Work Ticket + Step Line Key combination in the PM_WorkTicketHistoryStep table and return the corresponding step number.

ParameterDescription
workTicket$ [input, string] Value of the WorkTicketKey to use for lookup
stepKey$ [input, string] Value of the StepLineKey to use for lookup
Returns [string] Returns the StepNo field from PM_WorkTicketStep

if lookup was successful otherwise retiurns null.

FUNCTION PostDeleteRec()  
FUNCTION ResetCostCodeType(origRec$, origIOL$)  
FUNCTION RowReset()  
FUNCTION SetKey(LineKy$)  
FUNCTION ValidateGroupPMIntegrated()  

Verifies PM is integrated before allowing a change to any field in the ValidationGroup

Returns [boolean]
ValueDescription
retSUCCESS(1) If PMIntegratedAP = isTRUE
retFAILURE(0) If PMIntegratedAP = isFALSE
FUNCTION ValidateLines()  
FUNCTION ValidateWorkTicketStepNo(value$)  

Function to validate the StepNo$ is valid for a previously set WotkTicketKey$, when valid, retrieve the LineKey from the record and execute SetValue for WorkTicketStepLineKey$

ParameterDescription
value$ [input/output, string] Value of the StepNo$ to validate
Returns [boolean]
ValueDescription
retSUCCESS(1) StepNo is valid
retFAILURE(0) StepNo is not valid
FUNCTION LOCAL CalculateOverhead()  

Method used to calculate Overhead on transaction linked to a PM Work Ticket / Step

FUNCTION LOCAL ColumnOverrideDistributionAmt(colInfo)  
FUNCTION LOCAL ColumnOverrideQuantityDistributed(colInfo)  
FUNCTION LOCAL ColumnOverrideUnitCost(colInfo)  
FUNCTION LOCAL ColumnOverrideVariableOverheadCost(colInfo)  

Function that sets the VariableOverheadCost mask from the dynamic value for number of decimals of cost found in the CI Setup Options.

ParameterDescription
colInfo [input, objecthandle] Object handle to the dictionary object for the VariableOverheadCost column
Returns Always returs retSUCCESS(1)
FUNCTION LOCAL GenerateFormatMask$(mask$, decimals)  
FUNCTION LOCAL InitWorkTable()  
FUNCTION LOCAL RetrieveVendor(div$, vendor$, vendorSvc)  
FUNCTION LOCAL SetChildColl()  
FUNCTION LOCAL SetCurrentKey(key$)  

SetCurrentKey contains logic required following SetKey() to set initial state required for existing and new records.

Returns [boolean] True (1) if successful, false (0) if failure
FUNCTION LOCAL SetDefaults()  

Overrides base class function from SY_Maint which sets initial values of columns to a new record.

Returns Always returns retSUCCESS(1)
FUNCTION LOCAL PERFORM SetJCChildColl()  
FUNCTION LOCAL PERFORM SetJobInformation()  
FUNCTION LOCAL SetPMChildColl()  

Setup Child Collections for PM classes required when PM is Integrated with AP

Returns [boolean] Always returns success (1)
FUNCTION LOCAL ValidateAccountKey(value$)  
FUNCTION LOCAL ValidateAccumulateLines()  
FUNCTION LOCAL ValidateCostCode(value$)  
FUNCTION LOCAL ValidateCostType(value$)  
FUNCTION LOCAL ValidateDistributionAmt(value)  
FUNCTION LOCAL ValidateDistributionPercentage(value)  
FUNCTION LOCAL ValidateGroupJCIntegrated()  
FUNCTION LOCAL ValidateGroupJobNo()  
FUNCTION LOCAL ValidateJobNo(value$)  
FUNCTION LOCAL ValidateQuantityDistributed(value)  
FUNCTION LOCAL ValidateRetentionRate(value)  
FUNCTION LOCAL ValidateUnitCost(value)  
FUNCTION LOCAL ValidateWorkTicketKey(value$)  

Validates the Work Ticket Key. This will verify that the work ticket key exists in work ticket history table.

ParameterDescription
value$ [input, string] Value to be validated
Returns [numeric]
ValueDescription
retSUCCESS(1) Work ticket number is valid
retFAILURE(0) Work ticket number is not valid
retWARNING(-1) Work ticket number is valid, but warning message set.
FUNCTION LOCAL ValidateWorkTicketStepLineKey(value$)  

Validates the Work Ticket Step LineKey. This will verify that the work ticket Key + step LineKey exists in work ticket history step table.

ParameterDescription
value$ [input, date] Value to be validated
Returns [numeric]
ValueDescription
retSUCCESS(1) WorkTicketKey + WorkTicketStepLineKey is valid
retFAILURE(0) WorkTicketKey + WorkTicketStepLineKey is not valid

Properties inherited from: AP_CommonTransferDetail

CreditCardVendor$, Distribution, ValidBoxMLoad$, ValidBoxILoad$, ValidBoxDLoad$, AP_TransferOpenInvoiceSvc

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: CI_JobNo_Val

AllowOpenJobStatus, SkipJobStatusCheck

Properties inherited from: SY_LineEntryDetail_Bus

cActivityLogDelete$, cActivityLogDtlLevel$, HeaderKy$, HeaderHasLines, ReloadGrid, ValidHeader, NumberOfLines

Methods inherited from: AP_CommonTransferDetail

ClearSavedVars(), GetOpenInvoiceBalance(), SetOriginalTransferInvoice(), SetVendor(), ClearOldTransfer(), PERFORM GetOpenInvoice(), InitWorkTable(), Set1099Info(), SetChildColl(), ValidateDistributionAmt(), ValidateGroupNotJobNo(), ValidateTransferDiscount(), ValidateTransferInvoiceNo(), ValidateTransferVendorNo()

Methods inherited from: CI_Account_Val

ClassOverrideAccount(), ClassValidateAccount(), ResetAccountIndex()

Methods inherited from: CI_AssetTemplate_Val

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

Methods inherited from: CI_CostCode_Val

SetValidCostTypeForSOCC(), ClassValidateCostCode()

Methods inherited from: CI_JobNo_Val

CheckJobStatus(), ClassValidateJobNo()

Methods inherited from: SY_LineEntryDetail_Bus

AccumulateBatchTotals(), AddIn(), AddLine(), AddPrimarySrc(), BackOut(), ClearBindings(), ClearLine(), ClearSetFiles(), CommitRow(), DeleteLine(), EditLine(), GetBatchTotalVars(), GetEditKey$(), GetInsertSeq$(), GetSequenceLengths(), InitWorkTable(), InsertLine(), QuickRowLoad(), RemovePrimarySrc(), ResequenceLine(), ResetLine(), ResetRow(), SetBatchTotalVars(), SetHeader(), SetKey(), SwapLines(), ValidateLines(), Write(), ClearSetFileDeleteWorkTable(), ClearSetFileWorkTable(), CommitRowRemove(), CommitRowWrite(), PostDeleteRec(), PostWriteRec(), RenumberSequence(), WriteWorkTable()