psdi.app.po.virtual

Class AgreementInputSet

    • Constructor Detail

      • AgreementInputSet

        public AgreementInputSet(MboServerInterface ms)
                          throws MXException,
                                 java.rmi.RemoteException
        Construct the set.
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an AgreementInputSet object. The AgreementInputSet is a dummy set used only for viewing. This set is not associated with any table.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The AgreementInputSet.
        Returns:
        an AgreementInputSet object.
        Throws:
        MXException
        java.rmi.RemoteException
      • copyToPOLine

        public void copyToPOLine(MboRemote poLineRemote)
                          throws MXException,
                                 java.rmi.RemoteException
        Copies the values of the selected contract to the PO/PR Header and POLine/PRLine.
        • If the PO/PR Header does not have any vendor, the vendor of the selected contract is copied over to the PO/PR Header's vendor.
        • If the PO/PR Header already has a vendor, the POLines/PRLines are checked to see if there is any contract on any one of the POLines/PRLines. If there is a contract on one of the POLines/PRLines and if the contract that is being picked also has the same vendor, the contract details on the non persistent Mbo are copied over to the POLine/PRLine. If the vendor's info doesn't match, the action is not allowed.
        • If the PO/PR Header already has a vendor, but none of the POLines/PRLines reference any contract, the vendor on the header is replaced with the vendor on the contract. The costs on the other POLines/PRLines are recalculated.
        Throws:
        MXException
        java.rmi.RemoteException
      • getContractSet

        public MboSetRemote getContractSet()
                                    throws MXException,
                                           java.rmi.RemoteException
        Get the ContractAuth Set from ContractService.java
        Returns:
        a contarct set
        Throws:
        MXException
        java.rmi.RemoteException