psdi.app.mr

Class FldMRAssetnum

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldMRAssetnum
    extends FldAssetnum
    Behavior of the assetnum field in the MR object. AssetNum is the identifier or the code of the asset that requires the items on the MR.
    When a valid asset number is entered
    • No action takes place if there is already a wonum on this MR.
    • The location corresponding to this asset is set from the Asset table.
    • The GLDebitAccout is updated based on some rules
    • This Assetnum is copied to the lines if the GLAccount on the lines are not fully specified and if a workorder number does not exist on the lines.
    No asset validation is done if this MR is of type "TRANSFER"

    See Also:
    MR.updateGlAccount(), MR.copyToMRLines(java.lang.String, long), MR.isTransfer()
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Following rules are followed when this field is changed. When this field is emptied, the GLAccount will be changed back to its original value. In other words the GLAccout will not include the AssetNum. The superclass FldAssetnum checks if the value entered in this field is a valid asset number. When a valid asset number is entered
        • No action takes place if there is already a wonum on this MR.
        • The location corresponding to this asset is set from the Asset table.
        • The GLDebitAccout is updated based on some rules
        • This Assetnum is copied to the lines if the GLAccount on the lines are not fully specified and if a workorder number does not exist on the lines.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • determineLocationAction

        public void determineLocationAction()
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException