Class AP_VendorElectronicPayment_bus

This class is used to Validate the Fields in the AP_VendorElectronicPayment Table. This table keeps track of the Bank Accounts by Vendor where the Vendor's payment will be deposited The purpose of this enhancement is to give users the ability to pay their vendors electronically.

Properties

LOCAL cMainTable$="AP_VendorElectronicPayment"  
LOCAL cIsSysDB=isFALSE  
PROPERTY AuditTracking  

[boolean] Flag to indicate whether to track changes in audit trail

PROPERTY CheckForBankAccountType  
PROPERTY CheckForRoutingNo  
PROPERTY CheckForPreNoteSent  

Methods

FUNCTION CheckForInUse()  
FUNCTION CheckForPreNotePayments(div$, vendorNo$)  

Method to search for Records with a PreNoteSent value of "Y" or "A" Called from ConfirmDelete method in AP_Vendor_Bus to ensure that user will get prompted to reset the PreNotSent value to "N" @RETURN (boolean) Success if records are found

FUNCTION Delete(key$)  

Deletes electronic payment record and updates audit tracking

ParameterDescription
key$ [input, string] key to delete
Returns [boolean] retSUCCESS (1) or retFAILURE (0)
FUNCTION DeleteRecords(div$, vendorNo$)  

Method to remove all records for current Vendor Called from Delete method in AP_Vendor_Bus @RETURN (boolean)

FUNCTION GetNextPriority$(div$, vendorNo$)  

Method returns next available Priority Number Will go to the end of the file for that Vendor and increment the Priority by 1 @RETURN (string) Next Priority Number

FUNCTION GetYTDDepositAmt(div$, vendorNo$, bankAccountReference$, ytd)  
FUNCTION RenumberVendor(oDiv$, oVend$, nDiv$, nVend$, resetPreNote)  

Update the Electronic Payment File and set the PreNotSent field back to "N" Always updating AP Vendor Electronic Payment File regardless of AP Option ACH Electronic Payment or Record Flag Enable Electronic Payment. We want to make sure if they have records in Electronic Payment File that they stay with the Vendor @RETURN (boolean)

FUNCTION SetHeader(div$, vendorNo$, headerKy$)  
FUNCTION SetKeyValue(col$, val$)  
FUNCTION SwapLines(firstKey$, secondKey$)  

Swaps the records, key remains the same, just swaps non key fields @RETURN (boolean)

FUNCTION Write()  

Writes electronic payment record and updates audit tracking

Returns [boolean] retSUCCESS (1) or retFAILURE (0)

Properties inherited from: CI_CommonPII

AllowSensitiveAccess

Properties inherited from: CI_VendorNo_val

HoldPayment, SeparateCheck

Properties inherited from: SY_Maint

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

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: CI_APDivision_val

ClassValidateAPDivision()

Methods inherited from: CI_CommonPII

GetDecryptedCols(), CheckEncryptedCols(), ClearEncryptedCols(), DecryptRec(), EncryptRec(), GetEncryptedCols(), InitEncryptInfo(), MaskColumnValue$(), ResetEncryptedCols()

Methods inherited from: CI_RoutingTransitNo_val

ClassValidateRoutingTransitNo()

Methods inherited from: CI_VendorNo_val

ClassValidateVendorNo()

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()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()