psdi.app.invoice

Class FldInvoiceCostAssetNumNonPer

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceCostAssetNumNonPer
    extends FldCommonAssetnum
    InvoiceCost.assetnumnonper (non-persistent) validation class: This class is needed to handle the non-persistent field assetnumnonper which is displayed on the invoice line tab. The field behaves similiar to the invoice cost assetnum field and is needed as the editibility of the field on the invoice line tab and distribute cost page is different. The base class FldCommonAssetnum checks if the asset entered here is a valid asset. If the invoice cost location is null set it to the asset's location. Also set the debit general ledger account.
    See Also:
    FldCommonAssetnum
    • Constructor Detail

      • FldInvoiceCostAssetNumNonPer

        public FldInvoiceCostAssetNumNonPer(MboValue mbv)
                                     throws MXException
        Construct and attach to the mbo value.
        Throws:
        MXException
    • Method Detail

      • initValue

        public void initValue()
                       throws MXException,
                              java.rmi.RemoteException
        Set this atributes value equal to the invoice cost assetnum. Also set the gldebitacct and glcreditacct non-persistent fields value.
        Specified by:
        initValue in interface MboValueListener
        Overrides:
        initValue in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If the asset is rotating and wonum field is null set chargestore field to be editable. If the invoice cost location is null set it to the asset's location. The base class FldCommonAssetnum is used to set the debit GL Account for the invoice cost. As this field is on the invoiceline tab, updating this should update the actual assetnum field on invoice cost. Also update the wonum, location, gldebitacct and glcreditacct non-persistent fields.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldCommonAssetnum
        Throws:
        MXException
        java.rmi.RemoteException