psdi.app.contract.schedule

Class SchWarrantyView

  • java.lang.Object
    • Constructor Detail

      • SchWarrantyView

        public SchWarrantyView(MboSet ms)
                        throws java.rmi.RemoteException
        Construct the SchLeaseView 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 is added to the Schedule MboSet collection. The field defaults and field flags are set here. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        contractidOwner contract's ID
        enddateCurrent date
        inclusive1..inclusive2..inclusive3...No
        interimcharge0.0
        leaseratefactor0.0
        periodicpayment0.0
        scheduleidUnique ID
        schedulenumAdd one to the existing maximum value
        scheduletype
        singlelinefalse
        startdateCurrent date
        targinvstatusENTERED
        tax1..tax2..tax3...0.0
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • estimatePayment

        public void estimatePayment()
                             throws MXException,
                                    java.rmi.RemoteException
        The payment amount is estimated based on the schedule that has been entered. The calculate amount is set to the attribute linecost. The rules are: Payment = (Total Line Costs - Paid Invoices) / Number of remaining payments based on schedule.
        Specified by:
        estimatePayment in interface SchWarrantyViewRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        SchWarrantyView.estimatePayment()
      • getPaidInvoices

        public MboSetRemote getPaidInvoices()
                                     throws MXException,
                                            java.rmi.RemoteException
        Get all the invoices created for the contract which are in the status of PAID or APPR.
        Returns:
        MboSetRemote Invoice set
        Throws:
        MXException
        java.rmi.RemoteException
      • setEstimatePmtUsed

        public void setEstimatePmtUsed(boolean estPmt)
      • getEstimatePmtUsed

        public boolean getEstimatePmtUsed()
      • checkForPaymentValue

        public void checkForPaymentValue()
                                  throws MXException,
                                         java.rmi.RemoteException
        Check if the payment field has a value.
        Specified by:
        checkForPaymentValue in interface SchWarrantyViewRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.itsme.app.contract.schedule.ITSMESchWarrantyView#checkForPaymentValue