psdi.app.inventory

Class InvUseLineSplit

  • java.lang.Object
    • Constructor Detail

      • InvUseLineSplit

        public InvUseLineSplit(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Constructor for the InvUseLineSplit Object
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        initialization routine. This sets the READONLY flags both for those fields that are always read only and those that are editable only during insert.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

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

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Validations done before save().
        Overrides:
        appValidate in class Mbo
        Parameters:
        None -
        Throws:
        MXException
        java.rmi.RemoteException
      • checkForNegativeBalance

        public void checkForNegativeBalance()
                                     throws MXException,
                                            java.rmi.RemoteException
        Checks if the bin balance goes negative.
        Parameters:
        MboRemote -
        Throws:
        MXException
        java.rmi.RemoteException
      • getSharedInventory

        public MboRemote getSharedInventory()
                                     throws MXException,
                                            java.rmi.RemoteException
        getSharedInventory() - Holds the logic for grabbing the best Inventory mbo for updating - taking into account the possiblity that other mbos may attempt to update the very same inventory.
        Parameters:
        none -
        Returns:
        MboRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • getSharedInvBalance

        public MboRemote getSharedInvBalance()
                                      throws MXException,
                                             java.rmi.RemoteException
        getSharedInvBalance() created to gather the appropriate invbalance record by utilizing the logic built into the inventory object for retrieving the right invbalance record from memory. If the shared Inventory mbo is retrieved, using inventory methods will result in getting that inventory.mbos invbalance children
        Throws:
        MXException
        java.rmi.RemoteException
      • checkLot

        public void checkLot(MboRemote invBal)
                      throws MXException,
                             java.rmi.RemoteException
        This method checks if the lot has expired.
        Parameters:
        invBal -
        Throws:
        MXException
        java.rmi.RemoteException
      • canGoNegative

        public void canGoNegative(UserInfo userInfo,
                                  double toBeIssued,
                                  double curbal,
                                  double totalAvailable,
                                  MboRemote sourceMbo)
                           throws MXException,
                                  java.rmi.RemoteException
        Can negative balance be allowed?
        Parameters:
        UserInfo - The userInfo of the calling mbo.
        toBeIssued - quantity to be issued out of the storeroom bin
        curbal - the current balance in the bin.
        totalAvailable - The total available balance
        Throws:
        negativeBalisNotAllowed - Will not let transaction proceed if the issue will cause the current balance to go negative if MaxVars NEGATIVECURBAL is set to "DISALLOW".
        negativeAvailisNotAllowed - Will not let transaction proceed if the issue will cause the total available balance to go negative if MaxVars NEGATIVEAVAIL is set to "DISALLOW".
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Saves the invuselinesplit record and updates the related data.
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • chkPickListMbo

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

        public static void loadSkipFieldCopyHashSet()
                                             throws MXException,
                                                    java.rmi.RemoteException
        The following is a list of fields that are not copied from the source InvUseLineSplit to the target InvUseLineSplit.
        1. contentUID
        The above fields are added to the hashset so that
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo.Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped.If this field does not need to be copied return true. The following is a list of fields that are not copied from the source POLine to the target POLine.
        1. contentUID
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied.In all other cases return false.
        Throws:
        java.rmi.RemoteException
        MXException
      • setCheckNegBalanceFlag

        public void setCheckNegBalanceFlag(boolean flag)
                                    throws MXException,
                                           java.rmi.RemoteException
        Set the private boolean CheckNegBalance to true
        Throws:
        MXException
        java.rmi.RemoteException