Examples of Dunning


Examples of org.blueoxygen.postila.partnerrelations.businesspartnerrules.entity.Dunning

  public String execute(){
    if(getDunning().getName() != null || !"".equalsIgnoreCase(getDunning().getName())){
      addActionError("Name is required");
    }
   
    Dunning dunning;
    if(getDunning().getId() == null || "".equalsIgnoreCase(getDunning().getId())){
      dunning = new Dunning();
      logInfo = new LogInformation();
      logInfo.setCreateBy(sessionCredentials.getCurrentUser().getId());
      logInfo.setCreateDate(new Timestamp(System.currentTimeMillis()));
    } else {
      dunning = (Dunning) manager.getById(Dunning.class, getDunning().getId());
      logInfo = dunning.getLogInformation();
    }
   
    logInfo.setActiveFlag(getActive());
    logInfo.setLastUpdateBy(sessionCredentials.getCurrentUser().getId());
    logInfo.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
   
    dunning.setLogInformation(logInfo);
    dunning.setName(getDunning().getName());
    dunning.setDescription(getDunning().getDescription());
    dunning.setPdefault(getDunning().getPdefault());
    dunning.setSendDunningLetters(getDunning().getSendDunningLetters());
    dunning.setCreateLevelsSequentially(getDunning().getCreateLevelsSequentially());
   
    manager.save(dunning);
    setDunning(dunning);
    return SUCCESS;
  }
View Full Code Here

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

Examples of org.jabusuite.accounting.dunning.Dunning

            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

Examples of org.jabusuite.accounting.dunning.Dunning

    }

    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

Examples of org.jabusuite.accounting.dunning.Dunning

        this.setPnEditJbsObject(new PnDunningEdit());
    }

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

Examples of org.jabusuite.accounting.dunning.Dunning

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

Examples of org.jabusuite.accounting.dunning.Dunning

            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
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.