Class AP_ReverseCheckWork_bus

Properties

LOCAL cDefaultBatchNo$="00001"  

string used for default batch for restart logic

LOCAL cMainTable$="AP_ReverseCheckWork"  

main table for class

LOCAL cIsSysDB=isFALSE  

boolean value denoting whether the main table is a system table

LOCAL cReverseStatusAVAILABLE$="A"  

local constant for reverse status available to reverse

LOCAL cReverseStatusJOBDIST$="J"  

local constant for reverse status not available job distribution required

LOCAL cReverseStatusINACTIVEVENDOR$="V"  

local constant for reverse status not available due to inactive vendor

LOCAL cReverseStatusInvalidDetail$="D"  

local constant for reverse status not available due to missing or invalid check detail in history

LOCAL cReverseStatusPENDING$="P"  

local constant for reverse status of reversal pending in manual check

LOCAL cReverseStatusREVERSED$="R"  

local constant for reverse status of check previously reversed

PROPERTY RestartPoint$  

point to restart an interrupted update

Methods

FUNCTION CheckForReversal(chkAmount)  

Logic to check for an existing reversal of a check

ParameterDescription
chkAmount [input, number] amount of check to check for a reversal
Returns [boolean] True if successful, false if method fails
FUNCTION CheckReversalInManualCheck(tmpBankCode$, tmpCheckNo$, tmpCheckAmt)  

Logic to check for pending reversal in manual check

ParameterDescription
tmpSrcJournal$ [input, string] source journal which checks to select checks from
tmpSrcJournalBatchNo$ [input, string] source journal batch(register) number to select checks from
tmpDateUpdated$ [input, string] date register was updated to select checks from
Returns [boolean] True if reversal check exists in manual check, false if no reversal check exists in manual check
FUNCTION Clear()  

Clear all records from work table

Returns [boolean] True if successful, false if method fails
FUNCTION GetVendorInfo(divVal$, VendVal$, name$, status$)  

Logic to get vendor information

ParameterDescription
divVal$ [input, string] vendor division number
VendVal$ [input, string] vendor number
name$ [output, string] vendor name
status$ [output, string] vendor status
Returns [boolean]Always returns success
FUNCTION InvalidCheckDetail(checkKey$, checkAmt)  

Logic to check if a history check has invalid or missing check history detials

ParameterDescription
checkKey$ [input, sting] key of historical check
checkAmt [input, number] amount of historical check
Returns [boolean] True, if no or invalid check detail, false if valid check detail
FUNCTION JobOnInvoice(checkKey$)  

Checks if a job number exists for any detail lines of a check

ParameterDescription
checkKey$ [input, sting] key of historical check
Returns [boolean] True if a job number exists for check detail, false if no job number exists for check detail
FUNCTION SelectChecks(tmpSrcJournal$, tmpSrcJournalBatchNo$, tmpDateUpdated$, numInactiveVendorChecks, numInvalidDetailChecks, numJobDistChecks, numSelectedChecks, numReversedChecks, numPendingReversal)  

Logic to select checks, writes to AP_ReverseCheckWork

ParameterDescription
tmpSrcJournal$ [input, string] source journal which checks to select checks from
tmpSrcJournalBatchNo$ [input, string] source journal batch(register) number to select checks from
tmpDateUpdated$ [input, string] date register was updated to select checks from
numInactiveVendorChecks [output, integer] number of checks with an inactive vendor in check run that cannot be reversed
numInvalidDetailChecks [output, integer] number of checks in check run that have invalid check detail and cannot be reversed
numJobDistChecks [output, integer] number of checks in check run that have job cost information and cannot be reversed
numSelectedChecks [output, integer] number of checks selected that can be reversed
numReversedChecks [output, integer] number of checks in check run that have already been reversed
numPendingReversal [output, integer] number of checks in check run that are pending reversal in manual check
Returns [boolean] Always returns success
FUNCTION ValidateGroupBankRequired()  

Validate Bank Required Group

Returns [boolean] Always returns success

Properties inherited from: AP_Constant

checkAUTO$, checkCREDITCARD$, checkELECTRONIC$, checkELECTRONICREVERSAL$, checkMANUAL$, checkREVERSAL$, checkVOID$, checkWIRE$, checkWIREREVERSAL$

Properties inherited from: SY_Customization

cDummyIol$

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$

Methods inherited from: CI_BankCode_val

ClassValidateBankCode()

Methods inherited from: SY_Customization

GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()