Examples of Invoice


Examples of org.jabusuite.transaction.Invoice

    protected void debugSelected() {
        if ((logger.isDebugEnabled()) && (this.getSelectedInvoices()!=null)) {
            Iterator<Invoice> it = this.getSelectedInvoices().iterator();
            logger.debug("Selected invoices start:");
            while (it.hasNext()) {
                Invoice invoice = it.next();
                logger.debug(invoice.getId()+" "+invoice.getUserNumber());
            }
            logger.debug("Selected invoices end.");
        }
    }
View Full Code Here

Examples of org.jabusuite.transaction.Invoice

    public int getColumnCount() {
        return 7;
    }

    public Object getValueAt(int column, int row) {
        Invoice invoice = (Invoice) this.getJbsBaseObjects().get(row);
        switch (column) {
            case 0:
                Boolean checked = new Boolean(this.isInvoiceSelected(invoice));
                return checked;
            case 1:
                String userNo = invoice.getUserNumber();
                if (userNo == null) {
                    userNo = "";
                }
                return userNo;
            case 2:
                String name1 = invoice.getName1();
                if (name1 == null) {
                    name1 = "";
                }
                return name1;
            case 3:
                String sDate = "";
                if (invoice.getTransactionDate()!=null)
                    sDate = ClientGlobals.getDateFormat().format(invoice.getTransactionDate().getTime());
                return sDate;
            case 4:
                return ClientGlobals.getPriceFormat().format(invoice.getSalesPriceSumGross());
            case 5:
                return ClientGlobals.getPriceFormat().format(invoice.getSumPayed());
            case 6:
                return "";
            default:
                return "";
        }
View Full Code Here

Examples of org.jabusuite.transaction.Invoice

       
    }
   
    protected void createInvoice() {
        try {
            final Invoice invoice = new Invoice();
            String userNumber = getNextUserNumber(Invoice.class);
            invoice.setDataFromTransaction(getOrderConfirmation(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToInvoice"), JbsL10N.getString("OrderConfirmation.formTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
View Full Code Here

Examples of org.jabusuite.transaction.Invoice

        });
    }

    protected void createInvoice() {
        try {
            final Invoice invoice = new Invoice();
            String userNumber = getNextUserNumber(Invoice.class);
            invoice.setDataFromTransaction(this.getDeliveryNote(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("DeliveryNote.msgToInvoice"), JbsL10N.getString("Offer.messageBoxTitle"), JbsOptionPane.INFORMATION_MESSAGE);
            dialog.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent arg0) {
                    FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
View Full Code Here

Examples of org.jayasoft.woj.portal.model.commercial.Invoice

    public static void main(String[] args) {
        LoggingManager.initSimpleLoggingManagement();
        InvoiceBuilder builder = ItextPDFInvoiceBuilder.instance();
        Order o = new Order();
        o.setTotalCost(50.0d);
        Invoice i = new Invoice();
        PaymentInfo pi = new PaymentInfo();
        License l = new License();
        Price p = new Price();
        p.setPriceByYear(50);
        l.setPrice(p);
View Full Code Here

Examples of org.nightlabs.jfire.accounting.Invoice

        // TODO set problem key instead of assert (which throws an exception and thus rolls the whole transaction back).
        organisationAuthority.assertContainsRoleRef(userID, org.nightlabs.jfire.accounting.RoleConstants.editInvoice);

        Accounting accounting = Accounting.getAccounting(pm);
        Invoice invoice = accounting.createInvoice(user, recurredOffer.getArticles(), null);

        logger.debug("Successfully created Invoice " + JDOHelper.getObjectId(invoice));
        accounting.validateInvoice(invoice);

        if(recurringOffer.getRecurringOfferConfiguration().isBookInvoice())
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.demo.ancient.demo.invoice.model.Invoice

  {
    final Customer customer =
        new Customer("Will", "Snowman", "Mr.", "12 Federal Plaza",
            "12346", "AnOtherTown", "Lilliput");
    final GregorianCalendar gc = new GregorianCalendar(2000, 10, 23);
    final Invoice invoice = new Invoice(customer, gc.getTime(), "A-000-0123");

    final Article mainboard = new Article("MB.001", "Ancient Mainboard", 199.50f);
    final Article hardDisk = new Article
        ("HD.201", "Very Slow Harddisk", 99.50f, "No warranty");
    final Article memory = new Article("MEM.36", "Dusty RAM modules", 59.99f);
    final Article operatingSystem = new Article
        ("OS.36", "QDOS with C/PM compatibility module", 259.99f, "Serial #44638-444-123");
    invoice.addArticle(mainboard);
    invoice.addArticle(hardDisk);
    invoice.addArticle(memory);
    invoice.addArticle(memory);
    invoice.addArticle(operatingSystem);

    final InvoiceTableModel data = new InvoiceTableModel();
    data.addInvoice(invoice);
    return data;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.demo.ancient.demo.invoice.model.Invoice

  public void invalidateCaches()
  {
    int size = 0;
    for (int i = 0; i < invoices.size(); i++)
    {
      final Invoice inv = getInvoice(i);
      size += inv.getArticleCount();
    }
    this.totalSize = size;
    this.invoicePerRow = null;
    this.articlesPerRow = null;
    this.articleCountPerRow = null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.demo.ancient.demo.invoice.model.Invoice

    int currentRow = 0;
    final int invoiceSize = invoices.size();
    for (int i = 0; i < invoiceSize; i++)
    {
      final Invoice inv = (Invoice) invoices.get(i);
      final int articleCount = inv.getArticleCount();
      for (int ac = 0; ac < articleCount; ac++)
      {
        invoicePerRow[currentRow] = inv;
        articlesPerRow[currentRow] = inv.getArticle(ac);
        articleCountPerRow[currentRow] = inv.getArticleCount(ac);
        currentRow += 1;
      }
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.demo.ancient.demo.invoice.model.Invoice

   */
  public Object getValueAt(final int rowIndex, final int columnIndex)
  {
    // just make sure we can access the invoices by the array
    fillCache();
    final Invoice inv = invoicePerRow[rowIndex];
    final Article art = articlesPerRow[rowIndex];

    switch (columnIndex)
    {
      case 0:
        return inv;
      case 1:
        return inv.getCustomer().getFirstName();
      case 2:
        return inv.getCustomer().getLastName();
      case 3:
        return inv.getCustomer().getStreet();
      case 4:
        return inv.getCustomer().getTown();
      case 5:
        return inv.getCustomer().getPostalCode();
      case 6:
        return inv.getCustomer().getCountry();
      case 7:
        return inv.getCustomer().getSalutation();
      case 8:
        return inv.getDate();
      case 9:
        return inv.getInvoiceNumber();
      case 10:
        return art.getName();
      case 11:
        return art.getArticleNumber();
      case 12:
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.