psdi.app.po.virtual

Class AgreementInput

  • All Implemented Interfaces:
    java.rmi.Remote, AgreementInputRemote, MboConstants, MboRemote, NonPersistentMboRemote, MaxRemoteProxy


    public class AgreementInput
    extends NonPersistentMbo
    implements AgreementInputRemote
    A non-persistent Mbo that is created from the POLine/PRLine. This Mbo is just for viewing purposes. It contains all the contracts details for the item on the POLine/PRLine regardless of the vendor. Following is a list of fields that this non-persistent object contains.
    Attribute Name Description
    CatalogCode The caltalog code of the item.
    ContractLineId The contract reference line identifier.
    ContractRefNum The contract reference number.
    ContractType The type of the contract reference number.
    Description The description of the item.
    GLDebitAcct The gl debit account of the item.
    LeadTime The lead time of the item.
    LineCost The line cost of the item.
    Manufacturer The manufacturer of the item.
    Modelnum The modelnum of the item.
    OrderQty Quantity ordered on the POLine.
    OrderUnit The orderunit on the agreement line.
    OrgId Identifier of the organization for the non-persistent Mbo.
    RevisionNum The contract reference revision number.
    UnitCost Cost of each unit on the line.
    Vendor Identifier of the Vendor to whom the PO/PR would be sent to.
    • Constructor Detail

      • AgreementInput

        public AgreementInput(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Construct the AgreementInput Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • copyToPOLine

        public void copyToPOLine(MboRemote poLineRemote,
                                 MboRemote poRemote)
                          throws MXException,
                                 java.rmi.RemoteException
        Copy the values of the selected AgreementInput line to the POLine/PRLine.
        Specified by:
        copyToPOLine in interface AgreementInputRemote
        Parameters:
        poLineRemote - The POLine/PRLine object.
        poRemote - The PO/PR object.
        Throws:
        MXException
        java.rmi.RemoteException
      • copyFromContractToCurrentPO

        public void copyFromContractToCurrentPO(MboRemote poRemote,
                                                MboRemote contractRemote,
                                                MboRemote contractAuth)
                                         throws MXException,
                                                java.rmi.RemoteException
        Copies values of AgreementInput to the owner PO/PR. Also copies the terms from the Contract specified on the AgreementInput to the parent PO.
        Parameters:
        poRemote - The PO/PR object.
        contractRemote - The Contract object.
        contractAuth - The ContractAuth object.
        Throws:
        MXException
        java.rmi.RemoteException