psdi.app.invoice

Interface InvoiceLineSetRemote

    • Method Detail

      • addInvoiceLineWithKey

        InvoiceLineRemote addInvoiceLineWithKey(java.lang.String key)
                                         throws MXException,
                                                java.rmi.RemoteException
        Create an invoice line with the input invoicelinenum.
        Throws:
        MXException
        java.rmi.RemoteException
      • createInvoiceLine

        void createInvoiceLine(MboRemote receiptOrPOLine,
                               double qty,
                               double cost)
                        throws MXException,
                               java.rmi.RemoteException
        This method creates the new default invoiceline and calls the method to populate its attributes. The user must pass in the receipt or poline mbo from which the values will be copied. Also the quantity and linecost must be passed in as the values displayed on the user interface may be calculated and hence different. This depends upon if the user is displaying the invoiced or uninvoiced quantity and cost.
        Parameters:
        receiptOrPOLine - The receipt or poline mbo from which the values will be copied.
        qty - The quantity which the user will calculate and pass in.
        cost - The linecost which the user will calculate and pass in.
        Throws:
        MXException
        java.rmi.RemoteException
      • clearAllocatedLines

        void clearAllocatedLines()
                          throws MXException,
                                 java.rmi.RemoteException
        Clear the prorated info from the lines which have been prorated. This method is called by the GUI when it brings up the allocate services page so that the to be prorated lines can be prorated again.
        Throws:
        MXException
        java.rmi.RemoteException
      • allocateServices

        void allocateServices()
                       throws MXException,
                              java.rmi.RemoteException
        This method is called by the GUI to prorate the cost of the selected service lines to the selected lines to which the cost is to be prorated. The lines are marked selected in the set. The prorated flag of the lines which are being prorated is set to true and the other lines proratecost and the loaded cost is being updated. Also the loaded cost of the prorated lines is recalculatetd.
        Throws:
        MXException
        java.rmi.RemoteException
      • hasAllocatedLines

        boolean hasAllocatedLines()
                           throws MXException,
                                  java.rmi.RemoteException
        Check if the set has any prorated lines.
        Returns:
        boolean
        Throws:
        MXException
        java.rmi.RemoteException
      • getPOForQueryOnly

        MboRemote getPOForQueryOnly(java.lang.String ponum,
                                    java.lang.String positeid,
                                    java.lang.String revisionnum)
                             throws MXException,
                                    java.rmi.RemoteException
        IV35816/71201: for performance - Multiple InvoiceLines each references one POLine - which references one po. But there may be just one PO
        Parameters:
        ponum -
        positeid -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setPOforQueryOnly

        void setPOforQueryOnly(MboRemote po)
                        throws MXException,
                               java.rmi.RemoteException
        IV35816/71201:for performance
        Parameters:
        po -
        Throws:
        MXException
        java.rmi.RemoteException
      • getTaxTypeForQueryOnly

        MboRemote getTaxTypeForQueryOnly(java.lang.String typeCode,
                                         java.lang.String orgid)
                                  throws MXException,
                                         java.rmi.RemoteException
        IV35816/71201:for performance
        Parameters:
        typeCode -
        orgid -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setTaxTypeforQueryOnly

        void setTaxTypeforQueryOnly(MboRemote taxType)
                             throws MXException,
                                    java.rmi.RemoteException
        IV35816/71201:for performance
        Parameters:
        taxType -
        Throws:
        MXException
        java.rmi.RemoteException
      • getTaxRateForQueryOnly

        java.lang.Double getTaxRateForQueryOnly(java.lang.String typeCode,
                                                java.lang.String taxCode,
                                                java.lang.String orgID,
                                                java.lang.String currentDate)
                                         throws MXException,
                                                java.rmi.RemoteException
        IV35816/71201: multiple invoiceline may query one tax for its typeCode-up to 5. For Performance, just use one, instead of each invoiceline getting its own tax multiple times.
        Parameters:
        typeCode -
        taxCode -
        orgID -
        currentDate -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setTaxRateforQueryOnly

        void setTaxRateforQueryOnly(java.lang.String typeCode,
                                    java.lang.String taxCode,
                                    java.lang.String orgID,
                                    java.lang.String currentDate,
                                    double rate)
                             throws MXException,
                                    java.rmi.RemoteException
        IV35816/71201:for Performance
        Parameters:
        typeCode -
        taxCode -
        orgID -
        currentDate -
        rate -
        Throws:
        MXException
        java.rmi.RemoteException
      • getTaxForQueryOnly

        MboRemote getTaxForQueryOnly(java.lang.String taxCode,
                                     java.lang.String typeCode,
                                     java.lang.String orgid)
                              throws MXException,
                                     java.rmi.RemoteException
        IV35816/71201: multiple invoiceline may query only a small number of taxes(maybe just one) for its typeCode-up to 5. For Performance, cache the ones that have been used - to avoid same sql fetched for each invoice line.
        Parameters:
        taxCode -
        typeCode -
        orgid -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setTaxforQueryOnly

        void setTaxforQueryOnly(MboRemote tax)
                         throws MXException,
                                java.rmi.RemoteException
        IV35816/71201:for performance
        Parameters:
        tax -
        Throws:
        MXException
        java.rmi.RemoteException