psdi.app.invoice

Class InvoiceCostSet

    • Constructor Detail

      • InvoiceCostSet

        public InvoiceCostSet(MboServerInterface ms)
                       throws java.rmi.RemoteException
        Construct the set
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • validateInvoiceCost

        public void validateInvoiceCost()
                                 throws MXException,
                                        java.rmi.RemoteException
        Validates the invoice cost lines associated with the related invoice line. The invoice cost's quantity, cost, percentage have to be consistent with the invoice line.
        Specified by:
        validateInvoiceCost in interface InvoiceCostSetRemote
        Throws:
        MXApplicationException - (invoice, CostQtyShouldBeNull) Invoice cost quantity should be null.
        MXApplicationException - (invoice, QuantitySumInvalid) Invoice cost quantity total not equal to invoice line quantity.
        MXApplicationException - (invoice, LineCostSumInvalid) Invoice cost linecost total not equal to invoice line linecost.
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Can an object be added to the InvoiceCost? The owner of InvoiceCost must be InvoiceLine. Cannot add a new invoicecost if the invoice status is APPR, CANCEL, PAID or SCHED.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException(invoice, - onlyAccessableByInvoice) is thrown when the owner is not Invoice.
        MXApplicationException(invoice, - CannotAddInvoiceCost) Cannot add a new invoicecost if the invoice status is APPR, CANCEL, PAID or SCHED.
        MXException