psdi.app.common.purchasing

Class FldPurItemNum

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldRFQLineItemNum


    public class FldPurItemNum
    extends FldItemnum
    This is the field validation class for item field of POLine & PRLine.
    This is the identifier of the item. An item could be one of three types namely:
    • material not in inventory
    • a service
    • a special order item.
    See Also:
    psdi.app.item.FldItemNum
    • Field Detail

      • prevValue

        public java.lang.String prevValue
    • Constructor Detail

    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        If line type is special order, only new item could be allowed. For other line types, the item has to be in this line (item) type.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class FldItemnum
        Throws:
        MXApplicationException(po,itemused) - is thrown if the item exists in ITEM database.
        MXApplicationException(po,itemtype) - is thrown if the item does not exist for this lint type.
        MXApplicationException(po,cannotaddmorelines) - is thrown if the item does belong to the original contract.
        MXException
        java.rmi.RemoteException
      • getGLDebitAcct

        public void getGLDebitAcct()
                            throws MXException,
                                   java.rmi.RemoteException
        Gets proper GL debit account. The rule is: 1) if storeloc is not null, get GL debit account from Inventory (CONTROLACC) by storeloc and itemnum. Don't merge with item's resource code. 2) if storeloc, wonum, assetnum and location are null, but GL debit account is not null, merge GL debit account with item's resource code. 3) if wonum, assetnum, or location is not null, merge wonum, assetnum, or location with item's resource code.
        Throws:
        MXException
        java.rmi.RemoteException
      • smartFill

        public MboSetRemote smartFill(java.lang.String value,
                                      boolean exact)
                               throws MXException,
                                      java.rmi.RemoteException
        If line type is SPORDER, do not validate the entry and smartFill should not be in effect.
        Specified by:
        smartFill in interface MboValueListener
        Overrides:
        smartFill in class MAXTableDomain
        Parameters:
        value - the value the ther has entered in this field.
        exact - whether the list is retrieved use exact qbe.
        Throws:
        MXException
        java.rmi.RemoteException