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 ApplyToInvoiceHistoryHeaderSeqNo$   * Read Only *

Apply To Invoice history header sequence number

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 CanCopyFromHistory   * Read Only *

Can the Apply To Invoice information be copied from A/R Invoice History? 1=Yes; 0=No; -1=No, invoice does not exist in history

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 CreditMemoCopyFromInvoiceHistory(tmpInvoiceNo$, tmpHeaderSeqNo$, tmpUseCostFromHistory$)  

Credit Memo Copy From Invoice History

ParameterDescription
tmpInvoiceNo$ [input,string] invoice number to copy from
tmpHeaderSeqNo$ [input,string] header sequence number of history record to copy from
tmpUseCostFromHistory$ [input,string] use cost from history invoice lines in credit memo lines Y or N?
Returns [boolean] True = copy from history is successful, False = copy failed
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()  

Properties inherited from: AR_CommonEntry

cCalcRetnRate, cCreditAccepted, cOverrideCommission, cBrowseOmit$, AllowBillToOverride, RetentionPercent, BillToSvcObj, UseBillToCreditLimit, UseBillToCreditHold, UseBillToTermsCode

Properties inherited from: CI_CustomerNo_val

cAllowCashCust, cPerformCreditChecking, CreditExceeded, CreditHold, PerformCreditChecking, AllowCashCustomer

Properties inherited from: CI_Invoice_val

InvoiceNoLength

Properties inherited from: SY_BatchDataEntry

BatchEnabled, ErrorBatchNo$

Properties inherited from: SY_Customization

cDummyIol$

Methods inherited from: AR_CommonEntry

AdjustCalculatedValue(), CalcCommissionAmt(), CalcRetentionRate(), PostFind(), RecalcRetentionAmt(), RecalcSalesTax(), SalesTaxRecalculation(), SetCommonInfo(), SetRecalc(), SetTaxDetail(), CheckJobCustomer(), DeleteTax(), SetCommonChildColl(), SetTax(), ValidateARDivisionNo(), ValidateBillToCustomerNo(), ValidateBillToDivisionNo(), ValidateCommission(), ValidateCommissionAmt(), ValidateCommissionRate(), ValidateCreditCardID(), ValidateFreightAmt(), ValidateGroupARDivisionRequired(), ValidateGroupARSalespersonReporting(), ValidateGroupARSalesTax(), ValidateGroupBillToCustomerRpting(), ValidateGroupJCIntegrated(), ValidateJobNo(), ValidatePaymentType(), ValidatePrintInvoice(), ValidateSalespersonDivisionNo(), ValidateSalespersonNo(), ValidateSoldTo()

Methods inherited from: CI_CustomerNo_val

GetNextCustomerNo(), ClassOverrideCustomerNo(), ClassValidateCustomerNo()

Methods inherited from: CI_Invoice_val

ClassOverrideInvoice()

Methods inherited from: CI_NextNumber

FormatLotSerialNo$(), IncrementSerialNo(), NextNumber(), FindPrefix(), GetColumnInfo(), IncrementNumber()

Methods inherited from: CI_SalespersonFormatter

ParseSalesperson()

Methods inherited from: CI_SalesPersonNo_val

ClassValidateSalespersonNo()

Methods inherited from: SY_BatchDataEntry

DELETE(), DeleteBatch(), DeleteBatchNo(), GetBatchHandle(), IsBatchActive(), ResetBatchSubType(), SelectBatch(), SelectNewBatch(), SetCurrentKey(), VerifyBatch(), WRITE(), ClassValidateBatchNo$()

Methods inherited from: SY_Customization

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