psdi.app.financial

Class FinancialPeriods

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


    public class FinancialPeriods
    extends Mbo
    implements FinancialPeriodsRemote
    Mbo object to represent FinancialPeriods. FinancialPeriods object represents the period within which a financial transaction occurs. All MAXIMO transactions muts have a financial period stamp at the time of generation, which means they must take place during an open, valid financial period.

    See Financial Package description.

    The key attribute for this object is FinancialPeriod.

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    CloseDateThe date/time at which no further transactions can be charged to this accounting period.
    ClosedByThe name or user ID of the person who closed the financial period.
    FinancialPeriodFinancial period in a format corresponding to that required by the accounting system. Unique identifier.
    OrgIDOrganization Identifier.
    PeriodCloseDateDate/time when the financial period was closed. After a financial periodis closed by entering an Actual Close Date (periodclosedate), MAXIMO will not accept any financial transactions that users attempt to log for that period.
    PeriodEndEnd date of financial period.
    PeriodStartStart date of financial period.
    • Constructor Detail

      • FinancialPeriods

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a Financial Period and set field defaults. The periodstart date for a new financial period is defaulted to the latest periodend date. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        periodstartPrevious period end date
        OrgidOwner organization identifier
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete the current mbo. Set the next financial period's start date equal to the current start date. This is done to avoid any gaps or overlapping in the financial period date sequence.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • undelete

        public void undelete()
                      throws MXException,
                             java.rmi.RemoteException
        Undelete the current mbo. Set the next financial period's start date equal to the current end date. This is done to avoid any gaps or overlapping in the financial period date sequence.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • validateDates

        public void validateDates()
                           throws MXException,
                                  java.rmi.RemoteException
        Validates if the start and the end date are within the allowed ranges. A user should not be allowed to enter a financial period in the middle of an existing financial period i.e. entering 7/1/04 - 7/19-04 should not be allowed if 6/30/04 - 7/31/04 exists). If the start date or end date of a new period matches the start date or end date of an existing period, it can be added and the start or end date of the existing period should be updated (i.e. add 7/1/04 - 7/15/04 when 7/1/04 - 7/31/04 exists. New peroid is valid and existing period gets updated so that the new start date is the end date of the overlapping period (7/15/04 - 7/31/04).
        Throws:
        MXException
        java.rmi.RemoteException