Class SY_Company_bus

Properties

LOCAL cIsSysDB  
LOCAL cMainTable$="SY_Company"  
LOCAL cPrimaryIndex$="kCOMPANYCODE"  
LOCAL cInvalidCompanyCodeChars$=" !#$%&'()+, -.;=@[]^_`{}~"+":\/|><*?"+QUO  
LOCAL cARCreditCard=isFALSE  

Object handle for AR_CreditCard class - used to determine if AR_CreditCard has been instantiated

PROPERTY CCRegistered   * Read Only *
PROPERTY ARCreditCard   * Read Only *
Handle to AR_CreditCard, also accessible from ui
PROPERTY DelayEnteringVaultInfo  
If true, user chose to enter sage exchange vault terminal id/merchant key in payment type maintenance when enabling credit card processing
PROPERTY DocumentDateWarningEnabled   * Read Only *
If true, document date warning feature is enabled
PROPERTY EInvoice   * Read Only *
If true, eInvoice User id and api key were entered in system configuration

Methods

FUNCTION CheckCompanyCount()  
FUNCTION CheckForModule()  
FUNCTION CheckProcessingPaymentTypesExist()  
FUNCTION CheckProcessingPaymentTypesExist(payMethod$)  

Check AR_PaymentType records for Credit Card and/or ACH Payment Methods with valid connections

ParameterDescription
payMethod$ {OPTIONAL} [input, string] R = Credit Card, A = ACH
Returns retSUCCESS if there are any payment methods with valid connections
FUNCTION CompanyHasData()  
FUNCTION CompanyRecordCTL()  
FUNCTION CompanyRecordCTL(comp$)  
FUNCTION ConfirmDelete()  
FUNCTION CopyFrom(key$)  

Over-ride of SY_Maint'CopyFrom() to add clearing / setting back to default values of columns that should not be included in copy of company record.

ParameterDescription
key$ ComppanyKey$ of source / copy from SY_Company record to copy.
Returns retSUCCESS / retFAILURE
FUNCTION CreateNewDirectory(tmpdirectory$)  
FUNCTION DataTransfer(destdir$, sourcedir$, tmp)  
FUNCTION Delete(key$)  
FUNCTION EncryptionKeyAcceptable(encryptionKey$)  
FUNCTION FindDefaultCompanyForPrefs()  
FUNCTION GetActivatedModule(dstcompanycode$, tmpModuleName$, actv.ModuleCode$, firsttime)  
FUNCTION GetOriginalValue(tmpcolumn$)  
FUNCTION RunDll()  
FUNCTION SourceActivation(SRCCompanyKey$)  
FUNCTION ValidateCompanyCode(val$)  
FUNCTION ValidateDefaultFaxPrinter(val$, cPrinterListNames$)  
FUNCTION ValidateFaxCoverPage(val$)  
FUNCTION Write()  

Properties inherited from: CI_CUConvertData

cCompanyEntityID$, cPersonEntityID$, cCompanyLinkFiles$, cPersonLinkFiles$, cAddressLinkFiles$, cCompanyCreateLinkFiles$, cPersonCreateLinkFiles$, cAddressCreateLinkFiles$, cCompanyWhereClause$

Properties inherited from: SY_Maint

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

Properties inherited from: SY_Password

AESCipher$, AES256Cipher$

Methods inherited from: CI_Country_val

ClassValidateCountry()

Methods inherited from: CI_CUConvertData

CheckPostCode(), CloseTables(), CreateAdditionalLinks(), CreateLink(), CRMIDChanged(), DissolveLink(), FormatCountryToCRM(), FormatCountryToMAS(), FormatInactiveReasonToCRM(), FormatPersonToCRM(), FormatPersonToMAS(), FormatPhoneNumberToCRM(), FormatPhoneNumberToMAS(), FormatStateToMAS(), FormatTaxScheduleToCRM(), FormatTermsCodeToCRM(), GenerateContactCode$(), GenerateNewCRMID(), GenerateShipToCode$(), GenerateTimeStamp$(), GetAddressLinkID$(), GetEmailLinkID$(), GetPhoneLinkID$(), GetTaxSchedule(), LinkedToCRM(), PromoteCompanyToCustomer(), PushData(), PushMasData(), SetCustomerTemplate(), CheckColumnsToSkip(), GetCRMValidationGroupMembers$(), PERFORM InstantiateLinkObject(), PERFORM OpenCountryFile(), OpenTable(), PushDataReadLine(), PERFORM SetCRMCompanyFields(), PERFORM SetKeyLength(), PERFORM TranslateField(), UpdatePrimaryContactID(), ValidateGroupCRM()

Methods inherited from: CI_ThemeCode_val

ClassValidateThemeCode()

Methods inherited from: CI_ZipCode_val

ClassValidateZIPCode()

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(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_Password

ConfirmAESKey(), ConfirmPassword(), EncryptAESData(), EncryptAESKey(), EncryptAESPassword(), EncryptPassword(), GetAESDataTest$(), PasswordAcceptable(), ValidateAESData(), ValidateAESPassword(), ValidatePassword(), VerifyAESDataEncryption(), DecryptAESData(), DecryptAESKey(), DecryptAESPassword(), DecryptAltAESData(), DecryptPassword(), EncryptAltAESData(), GetKEK$(), InitAESKey(), InitializeAES(), InitializeAltAES(), ValidateAltAESData(), VerifyAltAESDataEncryption()