psdi.app.financial

Class CompanyAccDef

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


    public class CompanyAccDef
    extends Mbo
    implements CompanyAccDefRemote
    Mbo object to represent CompanyAccDef. CompanyAccDef object maintains the default company general ledger accounts. The accounts are based on company type as specified in the companies table.

    See Financial Package description.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    APControlAccCurrent default AP (Accounts Payable) Control account.
    APSuspenseAccCurrent default AP (Accounts Payable) Suspense account.
    OldAPControlAccPrevious default AP (Accounts Payable) Control account.
    OldAPSuspenseAccPrevious default AP (Accounts Payable) Suspense account.
    OldRBNIAccPrevious default RBNI (Received But Not Invoiced) account.
    OrgIDOrganization Identifier.
    RBNIAccCurrent default RBNI (Received But Not Invoiced) account.
    TypeThe company type.
    • Constructor Detail

      • CompanyAccDef

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

      • add

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

        public java.lang.String[] getValidateOrder()
        Override the system method. This method is called by the framework and returns an array of fields whose order need to be maintained during the delayed validation. This sequence is for maximizing performance for API and yielding correct result. The sequence should be: type, followed by other ifelds if any.
        Overrides:
        getValidateOrder in class Mbo
        Returns:
        String[] Array of fields in the defined sequence.
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        This method is always called by the framework before save to do application specific validation.
        1. If the mbo is modified and rbniacc value is changed, set oldrbniacc to the initial rbniacc value.
        2. If the mbo is modified and apcontrolacc value is changed, set oldapcontrolacc to the initial rbniacc value.
        3. If the mbo is modified and apsuspenseacc value is changed, set oldapsuspenseacc to the initial apsuspenseacc value.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException