psdi.app.common.purchasing

Class FldPurContractRefNum

    • Constructor Detail

      • FldPurContractRefNum

        public FldPurContractRefNum(MboValue mbv)
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • 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 PORequired attribute should be true. 3) The contract should be authorized for the site and org. 4) The contract should be in the valid date range. The current date should be between startdate and enddate. For PO only, contract CreateRel attribute should be false.
        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 PO/PR header. 1) Copy contract vendor related info to PO/PR vendor related info (vendor, contact, customernum, currencycode, fob, freightterms, paymentterms and shipvia) 2) Copy Contracts Terms and Conditions to PO/PR. If contract reference number is cleared in PO/PR header, 1) clear vendor realted info 2) delete terms that copied from contracts 3) 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 PORequired 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) The contract PORequired attribute should be true. 3) The contract should be in the valid date range. The current date should be between startdate and enddate. For PO only, contracts with a property CreateRel of true will not be considered.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • getContract

        public MboRemote getContract()
                              throws MXException,
                                     java.rmi.RemoteException
        Return a Contract object. It should only have none or one approved contract.
        Throws:
        MXException
        java.rmi.RemoteException
      • smartFind

        public MboSetRemote smartFind(java.lang.String sourceObj,
                                      java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: MAXTableDomain
        Get the list based on the qbe value of the attribute. This normally is used by applink. The list criteria of the field is ignored.
        Specified by:
        smartFind in interface MboValueListener
        Overrides:
        smartFind in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException