psdi.app.invoice

Class FldInvoiceVendor

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceVendor
    extends FldCompany
    Invoice.vendor validation class: The base class FldCompany checks if the vendor entered here is valid. Additional information is copied over from COMPANIES if the invoice does not have a PO. Also if the invoice already has a PO we can only enter a vendor which is the same as or the parent of the PO.
    See Also:
    FldCompany
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        The control and suspense GL Accounts are copied over from COMPANIES. Also if the invoice ponum is null additional information is copied over from COMPANIES. On clearing this field, also clear invoice contact, bankaccount, banknum and paymentterms as they belong to the vendor. If the vendor has a parent and the useparentremitto attribute is true, copy the vendor info from the parent vendor.



        Conditions:
        1. If the ponum is null set copy these field values from the company table
        2. If the vendor is null set the paymentterms, bankaccount, banknum and contact to null
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class CrossOverDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        If the invoice already has a PO the lookup should only show vendor which is the same as the PO's vendor and the parent of the PO's vendor. This method is used by the lookup on the Company field on invoice header.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException