Class AR_Invoice_bus

Properties

LOCAL cDefaultTermsCode$  
LOCAL cIsSysDB=isFALSE  
LOCAL cMainTable$="AR_InvoiceHeader"  
LOCAL cBatchModule$="A/R"  
LOCAL cBatchTotalVars$="TaxableSalesAmt+NonTaxableSalesAmt-FreightAmt-SalesTaxAmt"+SEP+"TaxableSalesAmt"+SEP+"NonTaxableSalesAmt"+SEP+"FreightAmt"+SEP+"SalesTaxAmt"  
LOCAL cBatchType$="01"  
LOCAL cBrowseOmit$  
LOCAL cPerformCustomerStatusChecking=isTRUE  
LOCAL cAllowMultipleEMailAddresses  
PROPERTY AdjustWarningNum$ ! warning message code if invoice is adjusted and the divisions don't match for the salesperson, cleared by the UI  
PROPERTY AdjustWarningMsg$ ! warning message code if invoice is adjusted and the divisions don't match for the salesperson, cleared by the UI  
PROPERTY cAR_OpenInvoiceFH   * Read Only *
PROPERTY AR_BillToCustomerRpting$   * Read Only *
PROPERTY AR_CommissionCalcBasedOn$   * Read Only *
PROPERTY AR_Divisions$   * Read Only *
PROPERTY AR_IntegrateJobCost$   * Read Only *
PROPERTY AR_OpenItemCustomer$   * Read Only *
PROPERTY AR_PrintInvoices$   * Read Only *
PROPERTY AR_RetainDetailedInvHist$   * Read Only *
PROPERTY AR_RetainDeletedInvoices$   * Read Only *
PROPERTY AR_SalespersonCommRpting$   * Read Only *
PROPERTY AR_SalesTaxReporting$   * Read Only *
PROPERTY AR_SegmentForSalesPostings$   * Read Only *
PROPERTY AR_TrackJCRetentionRecvbls$   * Read Only *
PROPERTY CreateInvoice   * Read Only *
PROPERTY CreditCardVoidReqd   * Read Only *

Boolean property, when true a Credit card transaction processed exists that requires a void when deleted

PROPERTY CreditExceeded   * Read Only *
PROPERTY CreditHold   * Read Only *
PROPERTY CustomerEInvoice$   * Read Only *

Bill to customer option: eInvoice Payments (Y/N)

PROPERTY DefaultItemCode$ SET ERR ! From AR_Customer, used in UI   * Read Only *
PROPERTY DocumentTotal   * Read Only *
PROPERTY EInvoice$   * Read Only *

Company option: Enable Payments for eInvoices (Y/N)

PROPERTY HistoryExists   * Read Only *
PROPERTY InConfirm  
PROPERTY JC_JobNoFormat$   * Read Only *
PROPERTY JC_RetentionTaxable$   * Read Only *
PROPERTY OverrideComission   * Read Only *
PROPERTY OverrideCreditLimit   * Read Only *
PROPERTY SalesTaxCalcObj   * Read Only *

Methods

FUNCTION AllowCreditCard()  
FUNCTION AllowCreditCard(reason$)  

This function determines if credit card is allowed in the invoice.

ParameterDescription
field$ {optional} [input, string] field that is being validated when this function is called.
Returns [boolean] True = allowed, False = not allowed.
FUNCTION ChangeTaxSchedule()  
FUNCTION CheckDeleteSecurity(BatchNo$)  
FUNCTION CLEAR()  
FUNCTION ClearLastRecord()  
FUNCTION ClearRepetitiveInvoices()  
FUNCTION CopyRepetitiveToInvoice(whereClause$, ML_InvoiceDate$, ML_SelectionDate$, IncludeCustsOnHold$, ML_NextNum$)  
FUNCTION DELETE(key$)  
FUNCTION DeleteBatch(batch$)  
FUNCTION GetContext$(destTable$)  
FUNCTION GetContextSourceTables$(context$)  
FUNCTION GetNextInvoiceNo(nextInvoiceNo$)  
FUNCTION LockTable(lockstate)  
FUNCTION OpenSalesTaxCalc()  
FUNCTION PostFind()  
FUNCTION ProcessCreditCard()  

This function processes credit card transaction.

Returns [boolean] True = success, False = failure.
FUNCTION RecalcTax()  
FUNCTION RemoveLockTable()  
FUNCTION SetCredit()  
FUNCTION SetDeleteHeader()  
FUNCTION SetPerformCreditCheck()  
FUNCTION SetRecalcRetention()  
FUNCTION Write()