psdi.app.asset

Class MoveDetails

  • java.lang.Object
    • psdi.app.asset.MoveDetails


  • public class MoveDetails
    extends java.lang.Object
    This class is used to store details about the movement of this asset.
    See Also:
    psdi.app.asset.Asset.java
    • Constructor Summary

      Constructors 
      Constructor and Description
      MoveDetails(Asset owner) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void checkForItemMismatch(boolean doCheck)
      enable the Asset/Location Item mismatch check
      void checkForLocationOccupied(boolean doCheck)
      enable the Location check to ensure that the Location is not occupied before moving an Asset object there
      void createAssetTransactionForNullLocation()
      creates an AssetTrans transaction object when newlocation = null
      void doMove()
      does the move across sites within an organization which has been setup by creating asset transaction records, updating asset data and updating the priority on open work orders.
      void setCommonParameters(java.lang.String memo, java.util.Date dateMoved, java.lang.String enterBy)
      sets the memo, moved date and enter by information provided when moving an Asset object between non-inventory locations.
      void setCommonParameters(java.lang.String memo, java.util.Date dateMoved, java.lang.String matUseTransID, java.lang.String matRecTransID)
      provides the memo, moved date, MatUseTransID and MatRecTransID information
      void setPonum(java.lang.String ponum)
      If this move is done in context of a return and transfer, supply the purchase order number.
      void setToInvLocParameters(java.lang.String newBinnum, java.lang.String glCreditAcct, java.lang.String glDebitAcct)
      provides new bin number, gl credit and gl debit accounts for moves to inventory type locations.
      void setToParent(java.lang.String newParent)
      povides the new parent for moves to non-inventory type locations.
      void setupMove(MboRemote newAssetLocation)
      This method does the checks and figures out where the asset's children go.
      void setWonum(java.lang.String wonum)
      If this move is done in context of a work order, supply the workorder number.
      void updateOpenWorkorders(boolean doUpdate)
      enable option to update open work orders for the Asset being moved
      void updateParentChildrenField()
      for the Asset object being moved, updates its parent's children attribute to be false if the asset being moved is the only child of its parent, that is, if before the move, the Asset being moved does not have any siblings.
      protected MboRemote updatePossibleIssue(MboRemote theNewAssetTrans)
      Created for issue#88871: update the possible MatUseTrans record if the asset is being moved from an operating location back to a storeroom location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MoveDetails

        public MoveDetails(Asset owner)
    • Method Detail

      • setWonum

        public void setWonum(java.lang.String wonum)
        If this move is done in context of a work order, supply the workorder number.
        Parameters:
        wonum - work order number
        See Also:
        Asset.canIssueAsset, Asset.canReturnAsset, Asset.canMoveAssetWithinNonInventory
      • setPonum

        public void setPonum(java.lang.String ponum)
        If this move is done in context of a return and transfer, supply the purchase order number.
        Parameters:
        ponum - purchase order number
        See Also:
        Asset.canReturnAsset, Asset.canMoveAssetWithinInventory
      • setCommonParameters

        public void setCommonParameters(java.lang.String memo,
                                        java.util.Date dateMoved,
                                        java.lang.String matUseTransID,
                                        java.lang.String matRecTransID)
        provides the memo, moved date, MatUseTransID and MatRecTransID information
        Parameters:
        memo - memo field
        dateMoved - date moved
        matUseTransID - matUseTransID (could be null)
        matRecTransID - matRecTransID (could be null)
        See Also:
        Asset.canIssueAsset, Asset.canReturnAsset, Asset.canMoveAssetWithinInventory
      • setCommonParameters

        public void setCommonParameters(java.lang.String memo,
                                        java.util.Date dateMoved,
                                        java.lang.String enterBy)
        sets the memo, moved date and enter by information provided when moving an Asset object between non-inventory locations.
        Parameters:
        memo - memo field
        dateMoved - date moved
        enterBy -
        See Also:
        Asset.canMoveAssetWithinNonInventory
      • setToInvLocParameters

        public void setToInvLocParameters(java.lang.String newBinnum,
                                          java.lang.String glCreditAcct,
                                          java.lang.String glDebitAcct)
        provides new bin number, gl credit and gl debit accounts for moves to inventory type locations.
        Parameters:
        newBinnum - new binnum (move to binnum)
        glCreditAcct - credit gl account
        glDebitAcct - debit gl account
        See Also:
        Asset.canReturnAsset, Asset.canMoveAssetWithinInventory
      • setToParent

        public void setToParent(java.lang.String newParent)
        povides the new parent for moves to non-inventory type locations.
        Parameters:
        newParent - new parent
        See Also:
        Asset.canMoveAssetWithinNonInventory
      • checkForItemMismatch

        public void checkForItemMismatch(boolean doCheck)
        enable the Asset/Location Item mismatch check
        Parameters:
        doCheck - boolean to enable the check
        See Also:
        Asset.canIssueAsset, Asset.canMoveAssetWithinNonInventory
      • checkForLocationOccupied

        public void checkForLocationOccupied(boolean doCheck)
        enable the Location check to ensure that the Location is not occupied before moving an Asset object there
        Parameters:
        doCheck - boolean to enable the location check
        See Also:
        Asset.canIssueAsset, Asset.canMoveAssetWithinNonInventory
      • updateOpenWorkorders

        public void updateOpenWorkorders(boolean doUpdate)
        enable option to update open work orders for the Asset being moved
        Parameters:
        doCheck - boolean to enable the update option
        See Also:
        Asset.canIssueAsset, Asset.canReturnAsset, Asset.canMoveAssetWithinNonInventory
      • setupMove

        public void setupMove(MboRemote newAssetLocation)
                       throws MXException,
                              java.rmi.RemoteException
        This method does the checks and figures out where the asset's children go. This method is only called on the top asset being moved.
        Parameters:
        newAssetLocation - location mbo that represents the "move to" destination for the Asset
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Asset.canIssueAsset, Asset.canReturnAsset, Asset.canMoveAssetWithinNonInventory, Asset.canMoveAssetWithinInventory
      • doMove

        public void doMove()
                    throws MXException,
                           java.rmi.RemoteException
        does the move across sites within an organization which has been setup by creating asset transaction records, updating asset data and updating the priority on open work orders. This method recursively calls itself to complete the move process.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Asset.issueAsset, Asset.returnAsset, Asset.moveAssetWithinNonInventory, Asset.moveAssetWithinInventory
      • updateParentChildrenField

        public void updateParentChildrenField()
                                       throws MXException,
                                              java.rmi.RemoteException
        for the Asset object being moved, updates its parent's children attribute to be false if the asset being moved is the only child of its parent, that is, if before the move, the Asset being moved does not have any siblings.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        doMove
      • createAssetTransactionForNullLocation

        public void createAssetTransactionForNullLocation()
                                                   throws MXException,
                                                          java.rmi.RemoteException
        creates an AssetTrans transaction object when newlocation = null
        Throws:
        MXException
        java.rmi.RemoteException
      • updatePossibleIssue

        protected MboRemote updatePossibleIssue(MboRemote theNewAssetTrans)
                                         throws MXException,
                                                java.rmi.RemoteException
        Created for issue#88871: update the possible MatUseTrans record if the asset is being moved from an operating location back to a storeroom location. User can previously use Issues and Transfers to ISSUE the asset to an operating location.
        Throws:
        MXException
        java.rmi.RemoteException