psdi.app.inventory.virtual

Class SplitUseLine

    • Constructor Detail

      • SplitUseLine

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

      • init

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

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        add() Provides defaults for a new SplitUseLine Record.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • splitRecords

        public MboSetRemote splitRecords(MboSetRemote lineSplitSet)
                                  throws MXException,
                                         java.rmi.RemoteException
        This method splits the quantities across multiple bins for non rotating items.
        Throws:
        MXException
        java.rmi.RemoteException
      • splitRecordsForRotItems

        public MboSetRemote splitRecordsForRotItems(MboSetRemote lineSplitSet)
                                             throws MXException,
                                                    java.rmi.RemoteException
        This method splits the quantities across multiple bins for rotating items.
        Throws:
        MXException
        java.rmi.RemoteException
      • splitRecordsForLotItems

        public MboSetRemote splitRecordsForLotItems(MboSetRemote lineSplitSet)
                                             throws MXException,
                                                    java.rmi.RemoteException
        This method splits the quantities across multiple bins for lotted items.
        Throws:
        MXException
        java.rmi.RemoteException
      • setFieldsForSplitRotating

        public void setFieldsForSplitRotating(MboRemote linesplit,
                                              java.lang.String frombin,
                                              java.lang.String rotassetnum)
                                       throws MXException,
                                              java.rmi.RemoteException
        This method sets the fields for split records across the multiple bins for rotating items.
        Throws:
        MXException
        java.rmi.RemoteException
      • setFieldsForSplit

        public void setFieldsForSplit(MboRemote linesplit,
                                      MboRemote invBal,
                                      double qty)
                               throws MXException,
                                      java.rmi.RemoteException
        This method sets the fields for split records across the multiple bins for items.
        Parameters:
        linesplit -
        invBal -
        Throws:
        MXException
        java.rmi.RemoteException
      • splitQty

        public java.util.LinkedHashMap splitQty()
                                         throws MXException,
                                                java.rmi.RemoteException
        This method finds the available bins with balance greater than or equal to the quantity on the usage line. It checks first the default bin and then the other bins sorted by the binnum.
        Returns:
        Hashmap : Invbalances Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvBalancesDefaultbin

        public MboRemote getInvBalancesDefaultbin()
                                           throws MXException,
                                                  java.rmi.RemoteException
        This method finds and returns the invbalances mbo for the default bin.
        Returns:
        MboRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • chkPickListMbo

        public boolean chkPickListMbo(MboRemote owner)
                               throws MXException,
                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • splitQtyforRotating

        public java.util.ArrayList splitQtyforRotating()
                                                throws MXException,
                                                       java.rmi.RemoteException
        This method create a Array List for the rotating asset. This list is used during the splitting the quantities for rotating items.
        Throws:
        MXException
        java.rmi.RemoteException
      • splitQtyforLotItems

        public java.util.LinkedHashMap splitQtyforLotItems()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        This method finds the available bins with balance greater than or equal to the quantity on the usage line and checks if the lot has expired.
        Returns:
        ArrayList : Invbalances Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • checkLot

        public boolean checkLot(MboRemote invBal)
                         throws MXException,
                                java.rmi.RemoteException
        This method checks if the lot has expired.
        Parameters:
        invBal -
        Returns:
        boolean, true if the lot is expired Otherwise, false
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        This method deletes the all split records corresponding to this line.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier -
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • isIssue

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