psdi.app.contract.schedule

Class ScheduleLine

  • java.lang.Object
    • Constructor Detail

      • ScheduleLine

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new schedule line is added to the ScheduleLine MboSet. It sets the default field values and access flags of the schedule line. At the same time it also creates a new schedule cost for this schedule line. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • afterAdd

        public void afterAdd()
                      throws MXException,
                             java.rmi.RemoteException
        Called right after the new ScheduleLine mbo is added to the set. It creates an ScheduleCost.
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Makes sure that the total percentage and linecost are equal to the owner schedule. Do this check if the schedule is for purchasing contract.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        If a schedule line belonging to a lease payment schedule is deleted, recalculate the owner schedule line cost. Also set the associated contract asset payment schedule flag to false.
        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
        If a schedule line belonging to a lease payment schedule is undeleted, recalculate the owner schedule line cost. Also set the associated contract asset payment schedule flag back to true.
        Specified by:
        undelete in interface MboRemote
        Overrides:
        undelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo.Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashTable. If this field does not need to be copied return true. The same method is over-rided also in ContractLine so that certain ContractLine fields can be skipped without being copied. The following are Contract fields will be skipped without being copied to the newly duplicated Contract
        1. SCHEDULELINEID
        2. SCHEDULEID
        3. SCHEDULENUM
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ContractLine.skipCopyField(psdi.mbo.MboValueInfo), ContractLine.loadSkipFieldCopyHashSet()
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        This method is called by the Mbo's delete method. It checks if all the conditions are met to go ahead with the deletion of this record. Do not allow this payment schedule line to be deleted if any invoices have been generated against this schedule. Do not allow this payment schedule line to be deleted if the contract is pending revision.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException - (contract, CannotDeleteIfInvoicesExist) Can only delete if invoices generated.
        MXApplicationException - (contract, CannotDeleteSchLineContractPNDREV) Can not delete if contract pending revision.
        MXException
        java.rmi.RemoteException
      • getScheduledInvoiceLines

        public MboSetRemote getScheduledInvoiceLines()
                                              throws MXException,
                                                     java.rmi.RemoteException
        Utility method to get the invoicelines for a schedule line which has invoices in the status of WAPPR, PAID and APPR.
        Returns:
        MboSetRemote
        Throws:
        MXException
        java.rmi.RemoteException