Class AR_CashReceipts_bus

Properties

LOCAL cMainTable$="AR_CashReceiptsHeader"  
LOCAL cIsSysDB=isFALSE  
LOCAL cPerformCreditChecking=isFALSE  
LOCAL cPerformCustomerStatusChecking=isTRUE  
PROPERTY AR_TrackJCRetentionRecvbls$=cAROptions_TrackJCRetentionRecvbls$  
PROPERTY AR_IntegrateJobCost$=cAROptions_IntegrateJobCost$  
PROPERTY AR_RetainDeletedInvoices$=cAROptions_RetainDeletedInvoices$  
PROPERTY AR_RetainDetailedInvHist$=cAROptions_RetainDetailedInvHist$  
PROPERTY JC_JobNoFormat$=cJCOptions_JobNoFormat$  
PROPERTY DepositObject   * Read Only *

Handle to AR_CashReceiptsDetail_bus

PROPERTY DepositUIObject  

Handle to AR_CashReceiptsDeposit_ui

PROPERTY OpenItemCustomer   * Read Only *

Current AR_Customer OpenItemCustomer column value

PROPERTY ReceiptIOL$   * Read Only *

AR_CashReceiptsHeader IOList (compiled)

PROPERTY SkipVoid   * Read Only *

Returns the value of cSkipCCVoid, used by AR_CashReceiptsDeposit_bus'BatchPreDelete()

PROPERTY ProcessVoid   * Read Only *

Returns the value of cProcessCCVoid, used by AR_CashReceiptsDeposit_bus'BatchPreDelete()

PROPERTY EInvoice   * Read Only *

If true, eInvoicing is set up in System Configuration

Methods

FUNCTION AutoDistributeBalance()  
FUNCTION CheckHeaderLinesBalance()  

Verify total from the header is fully distributed on the detail lines

Returns [boolean] True = success, False = failure
FUNCTION Clear()  

Clear object record state

Returns [boolean] True = success, False = failure.
FUNCTION CreditCardPreWrite()  

Pre-Write Credit Card validations

Returns [boolean] True = success, False = failure
FUNCTION Delete(key$)  

Delete current record

ParameterDescription
key$ [input, string] key value of record to delete
Returns [boolean] True = success, False = failure, -1 = warning
FUNCTION FindCustomer(in.InvoiceNo$, out.Customer$, out.InvoiceNo$, out.InvoiceType$, out.InvoiceNoFH, out.FromInvHistory$)  
FUNCTION GetNextCreditCardEntryNo(nextCCEntryNo$)  

Get Next available Credit Card/ACH Entry Number.

ParameterDescription
nextCCEntryNo$ [output string] next available entry number
Returns [boolean] True = success
FUNCTION InvoiceCollectionAdd(invNo$, Type$)  
FUNCTION InvoiceCollectionDelete(invNo$, Type$)  
FUNCTION SetHeader(header$)  
FUNCTION SetKey(key$)  

Override of base class SetKey(key$) to allow for pre-set key column validations

ParameterDescription
key$ [input string], full AR_CashReceiptsHeader key value being set
Returns [integer] 0 = failure, 1 = success existing record retrieved, 2 = success new record
FUNCTION UpdateCorpSalesTax(divNo$, custNo$, invNo$, invType$, postingAdjustment)  

Update CorporateSalesTax for additions / edits made on a detail line

ParameterDescription
divNo$ [input, string] AR Division Number
custNo$ [input, string] AR Customer Number
invNo$ [input, string] Invoice Number
invType$ [input, string] Invoice Type
postingAdjustment [input, numeric] Detail line Add-In, Back-Out amount
Returns [boolean] True = success, False = failure
FUNCTION Write()  

Write current record

Returns [boolean] True = success, False = failure, -1 = warning