psdi.app.invoice

Class InvoiceService

    • Constructor Detail

      • InvoiceService

        public InvoiceService()
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • InvoiceService

        public InvoiceService(MXServer mxServer)
                       throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getConsignmentTransactions

        public MboSetRemote getConsignmentTransactions(java.lang.String invGenType,
                                                       UserInfo userInfo,
                                                       java.lang.String vendor)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Get "uninvoiced" consignment transaction records from MatRecTrans, MatUseTrans, and Invtrans objects
        Specified by:
        getConsignmentTransactions in interface InvoiceServiceRemote
        Parameters:
        invoice - generation type comma separated string of types in quotes like "'FREQUENCY', 'MANUAL'"
        Returns:
        consignment transaction records.
        Throws:
        MXException
        java.rmi.RemoteException
      • createInvoiceLine

        public InvoiceLineRemote createInvoiceLine(InvoiceRemote invoice,
                                                   java.lang.String linenum)
                                            throws MXException,
                                                   java.rmi.RemoteException
        Create Invoice Line of an invoice through Invoice Service. This method is used by ERP to create a invoice line for a specific invoiceline number to a specified invoice line. The reason to have this function is that invoicecost is created automatically when invoiceline.add() is called. At that time, there is no way for ERP to specify the invoice line number and later find the correct invoicecost with the correct invoice line number. This method is on Invoice Service because simular function is on receipt.
        Specified by:
        createInvoiceLine in interface InvoiceServiceRemote
        Parameters:
        invoice - The invoice where the line is added to.
        linenum - The invoiceline number of the new invoiceline to be created.
        Returns:
        The newly created invoiceline mbo remote.
        Throws:
        MXException
        java.rmi.RemoteException
      • changeStatus

        public void changeStatus(InvoiceRemote invoice,
                                 java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Service Method used to change status.
        Specified by:
        changeStatus in interface InvoiceServiceRemote
        Parameters:
        Invoice - Invoice Mbo
        siteid - SiteID of the Invoice
        status - The new status
        date - The date
        memo - The memo.
        Throws:
        MXApplicationException("invoice", - "invalidstatuschange"); MXApplicationException("invoice", "StatusDate") MXApplicationException(""invoice", "CanCancelForSchedulePO")
        MXException
        java.rmi.RemoteException
        See Also:
        throws MXException, RemoteException