psdi.app.invoice

Class FldInvoiceTransTransType

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldInvoiceTransTransType
    extends SynonymDomain
    InvoiceTrans.transtype validation class: The base class validates if the entered InvoiceTrans type exists in the valuelist "INVCXTYP". The currencylinecost, gldebitacct and glcreditacct are copied depending upon the InvoiceTrans type.
    • Constructor Detail

      • FldInvoiceTransTransType

        public FldInvoiceTransTransType(MboValue mbv)
        Construct and attach to the mbo value.
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If the Invoice transaction type is "TOTAL" copy currencylinecost, gldebitacct and glcreditacct from Invoice's totalcost, apcontrolacct and apsuspenseacct respectively. Else if transaction type is anything from TAX1 --- TAX5 copy currencylinecost and gldebitacct from invoice's totaltax1 --- totaltax5 and gldebitacct from tax1gl --- tax5gl respectively. If the invoice is pay to vendor copy glcreditacct from invoice else copy from the related tax and taxtype objects. Get the correct Invoice as the InvoiceTrans can either be owned by an InvoiceLine or an Invoice.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException