Examples of SwsNoInvoiceLinesForInvoiceException


Examples of no.sws.client.SwsNoInvoiceLinesForInvoiceException

    // get the invoice lines from the invoice
    final List<InvoiceLine> invoiceLines = invoice.getInvoiceLines();

    if(invoiceLines == null || invoiceLines.size() == 0) {
      // missing invoice lines
      throw new SwsNoInvoiceLinesForInvoiceException(invoice);
    }

    if(invoiceLines.size() >= SwsClient.MAX_NO_OF_INVOICE_LINES) {
      // too many invoice lines
      throw new SwsTooManyInvoiceLinesException(invoice);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.