Package org.jabusuite.accounting.dunning

Examples of org.jabusuite.accounting.dunning.Dunning


        super.updateDataset(manager, dunning, changeUser);
    }

    public Dunning findDataset(long id) {
        logger.debug("Looking for dunning " + id);
        Dunning dunning = (Dunning) manager.find(Dunning.class, (long) id);
        return dunning;
    }
View Full Code Here


            DunningTemplate dunningTemplate = dunningGroup.getTemplateByDunningLevel(dunningLevel);
            if ((dunningTemplate == null) && (logger.isDebugEnabled())) {
                logger.warn("No dunning-template for level " + dunningLevel + " found in dunning-group " + dunningGroup.getId());
            }
            Dunning dunning = new Dunning();
            dunning.setDunningLevel(dunningLevel);
            dunning.setInvoice(invoice);
            if (dunningTemplate != null) {
                dunning.setDunningCharge(dunningTemplate.getDunningCharge());
                dunning.setDunningDate(Calendar.getInstance());
                dunning.setDunningTextsFromInvoice(dunningTemplate, invoice);
            }
            logger.debug("Dunning: Level " + dunning.getDunningLevel() + ", Invoice: " + dunning.getInvoice().getUserNumber());
            this.createDataset(dunning, user, company);
            createdDunnings.add(dunning);
        }
        return createdDunnings;
    }
View Full Code Here

    }

    public void setDunningsPrinted(ArrayList<Dunning> dunnings, JbsUser user) throws EJbsObject {
        Iterator<Dunning> it = dunnings.iterator();
        while (it.hasNext()) {
            Dunning dunning = it.next();
            if (!dunning.isPrinted()) {
                dunning.setPrinted(true);
                this.updateDataset(dunning, user);
            }
        }
    }
View Full Code Here

        this.setPnEditJbsObject(new PnDunningEdit());
    }

    @Override
    public void createJbsBaseObject() {
        this.setJbsBaseObject(new Dunning());
    }
View Full Code Here

    protected JbsDoubleField txDunningCharge;
    protected JbsLangTextArea txDunningText;
   
    public PnDunningEdit() {
        super(DlgState.dsInsert);
        this.setDunning(new Dunning());
    }
View Full Code Here

            return 6;
        }

        public Object getValueAt(int column, int row) {
            if (row < this.getJbsObjects().size()) {
                Dunning dunning = (Dunning) this.getJbsObjects().get(row);

                switch (column) {
                    case 0 :
                        String invoiceNo = "";
                        if (dunning.getInvoice() != null) {
                            invoiceNo = dunning.getInvoice().getUserNumber();
                        }
                        return invoiceNo;
                    case 1 :
                        String sName = "";
                        if (dunning.getInvoice() != null)
                            sName = dunning.getInvoice().getName1();
                        return sName;
                    case 2 :
                        String sDate = "";
                        if (dunning.getDunningDate() != null)
                            sDate=ClientGlobals.getDateFormat().format(dunning.getDunningDate().getTime());
                        return sDate;
                    case 3 :
                        return String.valueOf(dunning.getDunningLevel());
                    case 4 :
                        return ClientGlobals.getPriceFormat().format(dunning.getDunningCharge());
                    case 5 :
                        String strPrinted = "";
                        if (dunning.isPrinted())
                            strPrinted = JbsL10N.getString("Generic.yes");
                        return strPrinted;
                    default:
                        return "";
                }
View Full Code Here

TOP

Related Classes of org.jabusuite.accounting.dunning.Dunning

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.