Examples of KontoDO


Examples of org.projectforge.fibu.KontoDO

          final PFUserDO user = (PFUserDO) obj;
          return save(user, user.getRights());
        } else if (obj instanceof AbstractRechnungDO< ? >) {
          final AbstractRechnungDO< ? extends AbstractRechnungsPositionDO> rechnung = (AbstractRechnungDO< ? >) obj;
          final List< ? extends AbstractRechnungsPositionDO> positions = rechnung.getPositionen();
          final KontoDO konto = rechnung.getKonto();
          if (konto != null) {
            save(konto);
            rechnung.setKonto(null);
          }
          rechnung.setPositionen(null); // Need to nullable positions first (otherwise insert fails).
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

  private void reconcileKontenplan(final ImportedSheet<KontoDO> sheet)
  {
    log.info("Reconcile Kontenplan called");
    for (final ImportedElement<KontoDO> el : sheet.getElements()) {
      final KontoDO konto = el.getValue();
      final KontoDO dbKonto = kontoDao.getKonto(konto.getNummer());
      if (dbKonto != null) {
        el.setOldValue(dbKonto);
      }
    }
    sheet.setStatus(ImportStatus.RECONCILED);
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

  private int commitKontenplan(final ImportedSheet<KontoDO> sheet)
  {
    log.info("Commit Kontenplan called");
    final Collection<KontoDO> col = new ArrayList<KontoDO>();
    for (final ImportedElement<KontoDO> el : sheet.getElements()) {
      final KontoDO konto = el.getValue();
      final KontoDO dbKonto = kontoDao.getKonto(konto.getNummer());
      if (dbKonto != null) {
        konto.setId(dbKonto.getId());
        if (el.isSelected() == true) {
          col.add(konto);
        }
      } else if (el.isSelected() == true) {
        col.add(konto);
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

    satz.setDatum(row.datum);
    satz.setSatznr(row.satzNr);
    satz.setText(StringUtils.replace(row.text, "^", ""));
    satz.setMenge(row.menge);
    satz.setComment(row.comment);
    KontoDO konto = kontoDao.getKonto(row.konto);
    if (konto != null) {
      satz.setKonto(konto);
    } else {
      element.putErrorProperty("konto", row.konto);
    }
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

       */
      @Override
      public void populateItem(final Item<ICellPopulator<KundeDO>> item, final String componentId, final IModel<KundeDO> rowModel)
      {
        final KundeDO kunde = rowModel.getObject();
        final KontoDO konto = kontoCache.getKonto(kunde.getKontoId());
        item.add(new Label(componentId, konto != null ? konto.formatKonto() : ""));
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<KundeDO>(new Model<String>(getString("status")), "status", "status", cellItemListener));
    columns.add(new CellItemListenerPropertyColumn<KundeDO>(new Model<String>(getString("description")), "description", "description",
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

      }
      mapping.add(InvoicesCol.BRUTTO, zuweisung.getBrutto());
      mapping.add(InvoicesCol.VAT, NumberHelper.isNotZero(position.getVat()));
      Integer kontoNummer = null;
      if (rechnung instanceof RechnungDO) {
        final KontoDO konto = kontoCache.getKonto(((RechnungDO) rechnung));
        if (konto != null) {
          kontoNummer = konto.getNummer();
        }
      } else if (rechnung instanceof EingangsrechnungDO) {
        final Integer kontoId = ((EingangsrechnungDO) rechnung).getKontoId();
        if (kontoId != null) {
          final KontoDO konto = kontoCache.getKonto(kontoId);
          if (konto != null) {
            kontoNummer = konto.getNummer();
          }
        }
      }
      mapping.add(InvoicesCol.KONTO, kontoNummer != null ? kontoNummer : "");
      mapping.add(InvoicesCol.REFERENZ, StringHelper.removeNonDigitsAndNonASCIILetters(referenz));
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

  {
    final List<IColumn<KontoDO, String>> columns = new ArrayList<IColumn<KontoDO, String>>();
    final CellItemListener<KontoDO> cellItemListener = new CellItemListener<KontoDO>() {
      public void populateItem(final Item<ICellPopulator<KontoDO>> item, final String componentId, final IModel<KontoDO> rowModel)
      {
        final KontoDO konto = rowModel.getObject();
        appendCssClasses(item, konto.getId(), konto.isDeleted());
      }
    };
    columns.add(new CellItemListenerPropertyColumn<KontoDO>(new Model<String>(getString("fibu.konto.nummer")), getSortable("nummer",
        sortable), "nummer", cellItemListener) {
      /**
       * @see org.projectforge.web.wicket.CellItemListenerPropertyColumn#populateItem(org.apache.wicket.markup.repeater.Item,
       *      java.lang.String, org.apache.wicket.model.IModel)
       */
      @Override
      public void populateItem(final Item<ICellPopulator<KontoDO>> item, final String componentId, final IModel<KontoDO> rowModel)
      {
        final KontoDO konto = rowModel.getObject();
        if (isSelectMode() == false) {
          item.add(new ListSelectActionPanel(componentId, rowModel, KontoEditPage.class, konto.getId(), returnToPage, String.valueOf(konto
              .getNummer())));
        } else {
          item.add(new ListSelectActionPanel(componentId, rowModel, caller, selectProperty, konto.getId(),
              String.valueOf(konto.getNummer())));
        }
        cellItemListener.populateItem(item, componentId, rowModel);
        addRowClick(item);
      }
    });
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

        counter++;
        // Diese Berechnungen werden anhand des Wertenachweises einer Bwa geführt:
        if (record.isIgnore() == true) {
          continue;
        }
        final KontoDO account = record.getKonto();
        if (account == null || account.getNummer() == null) {
          continue;
        }
        final int accountNumber = account.getNummer();
        boolean found = false;
        for (final BusinessAssessmentRow row : rows) {
          if (row.doesMatch(accountNumber) == true) {
            row.addAccountRecord(record);
            found = true;
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

    KontenplanExcelRow[] rows = new KontenplanExcelRow[0];
    rows = imp.convertToRows(KontenplanExcelRow.class);
    for (int i = 0; i < rows.length; i++) {
      actionLog.incrementCounterSuccess();
      final KontoDO konto = convertKonto(rows[i]);
      final ImportedElement<KontoDO> element = new ImportedElement<KontoDO>(storage.nextVal(), KontoDO.class,
          DatevImportDao.KONTO_DIFF_PROPERTIES);
      element.setValue(konto);
      importedSheet.addElement(element);
      log.debug(konto);
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

    }
      }

  private KontoDO convertKonto(final KontenplanExcelRow row) throws Exception
  {
    final KontoDO konto = new KontoDO();
    konto.setNummer(row.konto);
    konto.setBezeichnung(row.bezeichnung);
    return konto;
  }
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.