psdi.app.asset

Class AssetTrans

  • All Implemented Interfaces:
    java.rmi.Remote, AssetTransRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class AssetTrans
    extends Mbo
    implements AssetTransRemote
    MBO object to represent the movement of a piece of asset. See Asset package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId and Assettransid.

    The attributes in this object are as follows:

    Attribute NameDescription
    DatemovedDate asset was moved. This defaults to the MXServer date/time, unless a value is provided.
    EnterbyUser who is moving the asset.This attribute defaults to the current user unless a value is provided.
    AssetnumUnique identifier for the piece of asset that is being moved.
    AssettransidUnique identifier for this object.
    FromlocOriginal location of the piece of asset being moved. Asset cannot be moved from a location of type Storeroom. Asset must be issued from a Storeroom location.
    FromparentIdentifier of the parent of the piece of asset being moved.
    GlcreditacctGlaccount of the location from which the asset is being moved.
    If moving to a non-inventory type location
    • If the asset is rotating, the Credit GL Account for the transaction is the ROTSUSPACCT on the asset being moved.
    • If the asset is not rotating, the Credit GL Account is set by merging the asset's GL account with the From Location's GL Account.
    If moving to an inventory type location
    • If the asset is rotating, the Credit GL Account for the transaction is the ROTSUSPACCT on the asset being moved.
    GldebitacctGlaccount of the location to which asset is being moved.
    If moving to an operating type location
    • If the asset is rotating, the Debit GL account for the transaction is the ROTSUSPACCT on the asset being moved.
    • If the asset is not rotating, the Debit GL account is set by merging the asset's GL account with the To Location's GL Account.
    If moving to an inventory type location
    • If the asset is rotating, the Debit GL account is the storeroom's control account.
    MatrectransidUnique identifier for material receipt transaction associated with this asset move. This attribute pertains only to asset move transactions to storeroom locations, that is, receipt of rotating asset.
    MatusetransidUnique identifier for material usage transaction associated with this asset move. This attribute pertains only to asset move transactions from a storeroom to an operating location, that is, the issuance of rotating asset.
    MemoFree-form comments regarding the asset move
    OrgIdIdentifier of the organization for this transaction.
    PonumThis attribute identifies the purchase order from which the rotating asset has been received.
    SiteIdIdentifier of the site for this transaction.
    TolocNew location for the piece of asset moved. This can be any type of location: Operating, Storeroom, Courier, Repair, Labor or Vendor.
    ToparentNew parent for the piece of asset.
    ToSiteIdNew site for the piece of asset moved.
    TransdateDate and time(from the MXServer) when the move transaction is executed. This cannot be overriden.
    WonumPertains only when a piece of asset is moved from a storeroom to an operating location. This attribute identifies the work order to which the rotating asset is being issued.
    Externalrefid, Ownersysid,Sourcesysid Used by MAXIMO Enterprise Adapter(MEA)for interface to external financial system.
    • Constructor Detail

      • AssetTrans

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Create a AssetTrans object for an Asset object. This cannot be called outside an Asset object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXApplicationException("asset","addassettrans") - if owner is not the Asset object
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to make sure that the owner is the Asset object before proceeding to the delete method.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException("asset","assetStatusNoDelete") - if owner is not the Asset object
        MXException
        java.rmi.RemoteException
      • smartFindByObjectName

        public MboSetRemote smartFindByObjectName(java.lang.String sourceObj,
                                                  java.lang.String targetAttrName,
                                                  java.lang.String value,
                                                  boolean exact)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Find a set of records of the object of the specified the application by the specified attribute and values of the current record.
        Specified by:
        smartFindByObjectName in interface MboRemote
        Overrides:
        smartFindByObjectName in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.Mbo#smartFindByObjectName()