Package org.jabusuite.accounting

Examples of org.jabusuite.accounting.AccountEntry


        return (int)this.getJbsObjects().size();
        }
         */
        public Object getValueAt(int column, int row) {
            if (row < getJbsObjects().size()) {
                AccountEntry accountEntry = (AccountEntry) getJbsObjects().get(row);
                switch (column) {
                    case 0:
                        String receiptNumber = accountEntry.getReceiptNumber();
                        if (receiptNumber == null) {
                            receiptNumber = "";
                        }
                        return receiptNumber;
                    case 1:
                        String entryDate = "";
                        if (accountEntry.getEntryDate() != null) {
                            entryDate = accountEntry.getEntryDate().getTime().toString();
                        }
                        return entryDate;
                    case 2:
                        String shortText = accountEntry.getShortText(ClientGlobals.getMainDbLanguage());
                        if (shortText != null) {
                            return shortText;
                        } else {
                            return "";
                        }
                    case 3:
                        String sIncoming = "";
                        if (accountEntry.isIncoming()) {
                            sIncoming = ClientGlobals.getPriceFormat().format(accountEntry.getAmount());
                        }
                        return sIncoming;
                    case 4:
                        String sOutgoing = "";
                        if (!accountEntry.isIncoming()) {
                            sOutgoing = ClientGlobals.getPriceFormat().format(accountEntry.getAmount());
                        }
                        return sOutgoing;
                    default:
                        return "";
                }
View Full Code Here


    public FmAccountEntryEdit() {
        super(JbsL10N.getString("AccountEntry.formTitle"));
    }
   
    public void createJbsBaseObject() {
        this.setJbsBaseObject(new AccountEntry());
    }
View Full Code Here

    protected JbsVATSelectField txVAT;
    Logger logger = Logger.getLogger(PnAccountEntryEdit.class);

    public PnAccountEntryEdit() {
        super(DlgState.dsInsert);
        this.setAccountEntry(new AccountEntry());
    }
View Full Code Here

TOP

Related Classes of org.jabusuite.accounting.AccountEntry

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.