psdi.app.common.purchasing

Class FldPurAssetnum

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldPurAssetnum
    extends FldCommonAssetnum
    This is field class validation for the asset field of POLine/PRLine. This is the asset where the item or service will be used or the rotating asset will be serviced. If there is workorder this asset is taken from the workorder.
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Post-validation is derived from FldCommonAssetnum class and any additional post-validation is done in this class.
        If both the workorder and location fields are null get the asset's location and set location field, set gldebitacct,if the mbo is a POLine and if the owning PO is internal set unitcost by getting invcost for this assetnum from asset mbo, set storeloc to null and readonly,set issue to Y.

        Conditions:
        1. set location,gldebitacct,chargestore,itemnum,storeloc,issue
        2. if the mbo is POLine and if the PO is "internal" set unitcost(unitcost = asset's invcost)
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldCommonAssetnum
        Throws:
        MXApplicationException(po, - AssetNonRotating) is thrown when the chargestore flag is true but the asset is not a valid rotating asset
        MXException
        java.rmi.RemoteException