psdi.app.invoice

Class FldInvoiceLineItemNum

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceLineItemNum
    extends FldItemnum
    This class is the validation class for the itemnum on the InvoiceLine.
    See Also:
    psdi.app.app.item.FldItemNum
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: FldItemnum
        Validate if the user can view/use this item in addition to regular checks of item's existence in db -> Commodity Authorization enhancement.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class FldItemnum
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If item is changed, cleared related fields. Set conditioncode, commodity, commoditygroup and prorateservice attribute from Item table. Set gldebitacct and tax info from ItemOrgInfo table.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class CrossOverDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • isAddLinesOnUse

        public boolean isAddLinesOnUse(MboRemote contractRemote)
                                throws MXException,
                                       java.rmi.RemoteException
        Get Purchase Contract AddLinesOnUse boolean value.
        Throws:
        MXException
        java.rmi.RemoteException
      • setContractOrderPrice

        public void setContractOrderPrice()
                                   throws MXException,
                                          java.rmi.RemoteException
        Get Contract default order price. If there is contract reference, get orderqty, unitcost and orderunit from Contract Line.
        Throws:
        MXException
        java.rmi.RemoteException
      • getGLDebitAcct

        public void getGLDebitAcct(MboRemote invCost)
                            throws MXException,
                                   java.rmi.RemoteException
        Gets proper GL debit account. The rule is: 1) if wonum, assetnum and location are null, but GL debit account is not null, merge GL debit account with item's resource code. 2) if wonum, assetnum, or location is not null, merge wonum, assetnum, or location with item's resource code.
        Throws:
        MXException
        java.rmi.RemoteException