psdi.app.invoice

Class FldInvoiceContractRefNum

    • Constructor Detail

      • FldInvoiceContractRefNum

        public FldInvoiceContractRefNum(MboValue mbv)
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Check if the contract is a valid contract or not. 1) The contract status should be APPR. 2) The contract should be in the valid date range. The current date should be between startdate and enddate. 3) For Warranty, Service, Lease and Rental contracts: PaymentSched is true. 4) For Purchase, Blanket, Price and SWLicense contracts: PORequired is false. 5) No Labor or Master contracts.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Copy contract info to Invoice header. 1) Copy contract vendor related info to Invoice vendor related info (vendor, contact, currencycode, paymentterms and inclusive1-5) 2) Copy Contracts Terms and Conditions to Invoice. If contract reference number is cleared in Invoice header, 1) delete terms that copied from Invoice 2) remove line contract reference number
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        Returns approved contracts and date range is active. If vendor is not null, add one more condition "only for that vendor". 1) The contract status should be APPR. 2) For Warranty, Service, Lease and Rental contracts: PaymentSched is true. 3) For Purchase, Blanket, Price and SWLicense contracts: PORequired is false. 4) No Labor or Master contracts. 5) The contract should be in the valid date range. The current date should be between startdate and enddate.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException