psdi.app.financial

Class GLComponents

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, GLComponentsRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class GLComponents
    extends Mbo
    implements GLComponentsRemote
    Mbo object to represent GLComponents. GLComponents object is associated with defining valid component values for general ledger account codes. If the component is inactive, it can no longer be used to create new account codes. Also, existing general ledger accounts using this component are inactive.

    See Financial Package description.

    The key attributes for this object are GLOrder and CompValue.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    CompTextDescription of the general ledger component.
    CompValueThe general ledger component value. Unique identifier.
    ActiveIndicates if the component is active or inactive. Once inactive the component cannot be used in an account.
    ExternalRefIDExternal Reference ID.
    GLOrderOrder of this component in a general ledger account. Unique identifier.
    ORGIDOrganization Identifier.
    OwnerSysIDOwner system ID.
    SenderSysIDColumn used by ERP-Integration (APIs).
    SourceSysIDSource system ID.
    UserIDThe user ID of the person inserting or modifying this component.
    • Constructor Detail

      • GLComponents

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a GL component record. Set field defaults and field flags. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        activeNo
        useridCurrent user's identifier
        OrgidOwner organization identifier
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • activateGLComponent

        public AccountSetRemote activateGLComponent()
                                             throws MXException,
                                                    java.rmi.RemoteException
        Activate the GL Component, also activate the GL Account in CHARTOFACCOUNTS where this component is used. But if there is another component in this account which is inactive, do not activate the account. A GL Account can be activated only if all its components are active. This method is here as the MEA group might use it. Set active to YES and active date=current date and expire date=null.
        Specified by:
        activateGLComponent in interface GLComponentsRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponents.activateGLComponent()
      • activateComponent

        public void activateComponent()
                               throws MXException,
                                      java.rmi.RemoteException
        Activate the GL Component. If this component is used in GL accounts in chart of accounts throw error. This will be a yes/no message which will give the user a choice of activating all the related chart of accounts. This method is called by the UI when OK is clicked.
        Specified by:
        activateComponent in interface GLComponentsRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponents.activateComponent()
      • activateCOA

        public void activateCOA()
                         throws MXException,
                                java.rmi.RemoteException
        Activate the GL Account in CHARTOFACCOUNTS where this component is used. But if there is another component in this account which is inactive, do not activate the account. A GL Account can be activated only if all its components are active. This method is called by the UI when Yes or No is clicked on the message box.
        Specified by:
        activateCOA in interface GLComponentsRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        GLComponents.activateCOA()
      • generateGLCompColumn

        public static java.lang.String generateGLCompColumn(int i)
        Generates the column names used in the database for storing segments in CHARTOFACCOUNTS. There are twenty columns from glcomp01 to glcomp20 for which names are only generated if required.
        Parameters:
        i - Number of segments in the GL Account
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        If this gl component has beed modified to be in-active, set all the gl accounts in chart of accounts using it to in-active as well. If the gl component has been set to active, set he related chart of accounts to active using a pop dialog to confirm if the user wants to do that.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Cannot delete a component if it is active. Cannot delete a component if it is used as a part of a default account.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException