psdi.app.financial

Class Account

  • All Implemented Interfaces:
    java.rmi.Remote, AccountRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class Account
    extends Mbo
    implements AccountRemote
    Mbo object to represent ChartOfAccounts. Account (ChartOfAccounts) object represents the General Ledger (GL) accounts in the user's financial system. These General Ledger accounts are established with definitions equivalent to those used within the rest of the user's financial data processing system.

    See Financial Package description.

    The key attribute for this object is GLAccount.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    AccountNameDescription of the general ledger account. Also accomodates a long description.
    activeIndicates if the account is active or inactive. Once inactive the account cannot be used or inserted in any records.
    ExternalRefIDExternal Reference ID.
    GLAccountGeneral ledger account code, consisting of one or more components. Unique identifier.
    GLAccTypeUser-defined code to signify the type of account.
    GLComp01 - GLComp20The GL components 1 thru 20 making up this account.
    LDKeyLong Description Key.
    OrgIDOrganization Identifier.
    OwnerSysIDOwner system ID.
    SenderSysIDColumn used by ERP-Integration (APIs).
    SourceSysIDSource system ID.
    • Constructor Detail

      • Account

        public Account(MboSet ms)
                throws java.rmi.RemoteException
        Construct the Account object.
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new General Ledger account. Set field defaults and field flags. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        ActiveYes
        OrgidOwner organization identifier
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setEditibilityFlags

        protected void setEditibilityFlags()
        Set the read-only flags for fields where it changes.
      • addUpdateComponents

        public void addUpdateComponents(java.lang.String[] compName,
                                        java.lang.String[] compDesc,
                                        boolean[] CompDescAsNameArray)
                                 throws MXException,
                                        java.rmi.RemoteException
        Add or update the components. This method is specifically used by the API's. If the component does not exist it is added, else it is updated with the passed in description. If the segment is inactive do not update it.
        Specified by:
        addUpdateComponents in interface AccountRemote
        Parameters:
        compName - Array of segment names.
        compDesc - Array of segment descriptions.
        Throws:
        MXApplicationException - (financial, GLCompNotActive) The segment is inactive.
        MXException
        java.rmi.RemoteException
        See Also:
        Account.addUpdateComponents(java.lang.String[], java.lang.String[], boolean[])
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Set the individual components of a newly added GL Account to their respective columns. Breaks up the glaccount into segments and writes the individual segments to their respective columns such as the first segment goes to column GLCOMP01, second to GLCOMP02, etc;
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canInActivate

        public boolean canInActivate()
                              throws MXException,
                                     java.rmi.RemoteException
        Finds out if this account is being used actvely in some application in which case it will not be inactivated.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException