psdi.app.inventory.virtual

Class IssueItemToAsset

    • Constructor Detail

      • IssueItemToAsset

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets up a new IssueItemToAsset object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Initialization routine set the attributes itemnum, itemsetid, outside,avbalBalance,curbaltotal.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Validate if the GL Account is fully specified. The spacer used in partially formed gl accounts is retreived from the maxvar GLQUESTION. If that spacer is found in either the gldebitacct or glcreditacct an exception is thrown.
        GROUPKEYREASON
        inventoryinvalidGLDebitAccountif the debit account is not fully specified
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • copyAssetsForIssue

        public void copyAssetsForIssue(MboSetRemote assetSet)
                                throws java.rmi.RemoteException,
                                       MXException
        Loops thru the passed AssetSet and add new IssueCurrentItem Mbos based if Asset is selected.
        Specified by:
        copyAssetsForIssue in interface IssueItemToAssetRemote
        Parameters:
        assetSet - the MboSetRemote of AssetSetRemote instance. Only process the selected rows.
        issueItemToAssetMbo - the MboRemote of IssueItemToAssetMbo instance. This Mbo will do the actual copying.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        psdiapp.inventory.virtual.IssueItemToAsset#copyAssetsForIssue(MboSetRemote, MboRemote)
      • isIssue

        protected boolean isIssue()
                           throws MXException,
                                  java.rmi.RemoteException
        Returns true if issuetype = the internal string for ISSUE, otherwise returns false.
        Parameters:
        none -
        Returns:
        boolean
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • isReturn

        protected boolean isReturn()
                            throws MXException,
                                   java.rmi.RemoteException
        Returns true if issuetype = the internal string for RETURN, otherwise returns false.
        Parameters:
        none -
        Returns:
        boolean
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • getIssueInventory

        protected MboRemote getIssueInventory()
                                       throws MXException,
                                              java.rmi.RemoteException
        returns the inventory for the issue, not necessarily the invnetoy where the Issue Current Item page was launched.
        Throws:
        MXException
        java.rmi.RemoteException
      • setIssueInventory

        protected void setIssueInventory(MboRemote inv)
                                  throws MXException,
                                         java.rmi.RemoteException
        Tells the IssueItemToAsset object the Inventory object the issue is being done on as user can change the storeroom.
        Throws:
        MXException
        java.rmi.RemoteException
      • incrementTotalQty

        protected void incrementTotalQty(double increment)
                                  throws MXException,
                                         java.rmi.RemoteException
        Calculates the total quantity to be issued to the AssetIssuedToSet
        Throws:
        MXException
        java.rmi.RemoteException