Package org.jabusuite.transaction

Examples of org.jabusuite.transaction.Invoice


        });
    }

    protected void createInvoice() {
        try {
            final Invoice invoice = new Invoice();
            String userNumber = getNextUserNumber(Invoice.class);
            invoice.setDataFromTransaction(getOffer(), userNumber);
            JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("Offer.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


    }
   
    public void swapSelection() {
        Iterator<JbsBaseObject> it = this.getJbsBaseObjects().iterator();
        while (it.hasNext()) {
            Invoice invoice = (Invoice)it.next();
            if (isInvoiceSelected(invoice))
                deSelectInvoice(invoice);
            else
                selectInvoice(invoice);
        }
View Full Code Here

    public boolean isInvoiceSelected(Invoice invoice) {
        boolean found = false;
        if (this.getSelectedInvoices()!=null) {
            Iterator<Invoice> it = this.getSelectedInvoices().iterator();
            while ((!found) && (it.hasNext())) {
                Invoice selInvoice = it.next();
                found=(selInvoice.getId()==invoice.getId());
            }
        }
        return found;
    }
View Full Code Here

    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

    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

       
    }
   
    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

        });
    }

    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

TOP

Related Classes of org.jabusuite.transaction.Invoice

Copyright © 2018 www.massapicom. 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.