psdi.app.inventory

Class InvBalancesSet

    • Constructor Detail

      • InvBalancesSet

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

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Returns a reference to a new InvBalance Mbo.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - a MboSet
        MboSet - - the set for which to generate a new InvBalances mbo
        Returns:
        a new InvBalances Mbo
        Throws:
        none
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Can an object be added to the InvBalances? If the owner of InvBalances is not Inventory, stop the process.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException(inventory, - invBalNoAdd) is thrown when the owner is not inventory or owner is null
        MXException
      • increaseErrorCount

        public void increaseErrorCount()
                                throws MXException,
                                       java.rmi.RemoteException
        This methods keeps the count of rows for which current balance did not get modified.
        Throws:
        MXException
        java.rmi.RemoteException
      • totalCurBalErrors

        public void totalCurBalErrors()
                               throws MXException,
                                      java.rmi.RemoteException
        Displays a message when one or more rows do not get updated with new CurBal as the old value is same as the new value.
        Specified by:
        totalCurBalErrors in interface InvBalancesSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.inventory.InvBalances#totalCurBalErrors()
      • totalPhyscntErrors

        public void totalPhyscntErrors()
                                throws MXException,
                                       java.rmi.RemoteException
        Displays a message when one or more rows do not get updated with new physical count as the old value is same as the new value.
        Specified by:
        totalPhyscntErrors in interface InvBalancesSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.inventory.InvBalances#totalPhyscntErrors()
      • checkSpecifyCost

        public boolean checkSpecifyCost()
                                 throws MXException,
                                        java.rmi.RemoteException
        This method is called during current balance adjustment. It checks if the item cost type is LIFO or FIFO and the new balance is greater than the original balance(overage), it add a new record to invlifofifocost table. It returns true, if item's cost type is LIFO or FIFO.
        Specified by:
        checkSpecifyCost in interface InvBalancesSetRemote
        Returns:
        True or False
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        InvBalancesSet.checkSpecifyCost()
      • checkLifoFifoCostType

        public boolean checkLifoFifoCostType()
                                      throws MXException,
                                             java.rmi.RemoteException
        This method returns true if the item cost type is LIFO or FIFO , Otherwise returns False.
        Returns:
        True or False
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvBalanceMap

        public java.util.HashMap getInvBalanceMap(boolean isreconcile)
                                           throws MXException,
                                                  java.rmi.RemoteException
        This method create Hash map for the invbalance set with conditioncode key if new balance entered is less than current balance.
        Returns:
        Hash Map
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvBalanceVector

        public java.util.Vector getInvBalanceVector(boolean isreconcile)
                                             throws MXException,
                                                    java.rmi.RemoteException
        This method returns vector of the given invbalance set if the newbalance entered is less than current balance.
        Returns:
        Vector
        Throws:
        MXException
        java.rmi.RemoteException
      • connectInventoryPhysCntDate

        public void connectInventoryPhysCntDate(MboRemote inventory)
                                         throws MXException,
                                                java.rmi.RemoteException
        12-10537/IV14319: connect the Inventory record used to hold the physcont date for the invbalances set
        Parameters:
        inventory -
        Throws:
        MXException
        java.rmi.RemoteException
      • getPhysCntInventory

        public MboRemote getPhysCntInventory()
                                      throws MXException,
                                             java.rmi.RemoteException
        12-10537/IV14319: connect the Inventory record used to hold the physcont date for the invbalances set
        Parameters:
        inventory -
        Throws:
        MXException
        java.rmi.RemoteException