Examples of KontoDO


Examples of org.projectforge.fibu.KontoDO

      @SuppressWarnings({ "unchecked", "rawtypes"})
      @Override
      public void populateItem(final Item item, final String componentId, final IModel rowModel)
      {
        final EingangsrechnungDO rechnung = (EingangsrechnungDO) rowModel.getObject();
        final KontoDO konto = kontoCache.getKonto(rechnung.getKontoId());
        item.add(new Label(componentId, konto != null ? konto.formatKonto() : ""));
        cellItemListener.populateItem(item, componentId, rowModel);
      }
    });
    columns.add(new CellItemListenerPropertyColumn<EingangsrechnungDO>(getString("fibu.common.reference"),
        getSortable("referenz", sortable), "referenz", cellItemListener));
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

      {
        if ("konto".equals(field.getName()) == true) {
          Integer kontoNummer = null;
          final Integer kontoId = ((EingangsrechnungDO) entry).getKontoId();
          if (kontoId != null) {
            final KontoDO konto = kontoCache.getKonto(kontoId);
            if (konto != null) {
              kontoNummer = konto.getNummer();
            }
          }
          mapping.add(field.getName(), kontoNummer != null ? kontoNummer : "");
        } else {
          super.addMapping(mapping, entry, field);
        }
      }

      /**
       * @see org.projectforge.excel.ExcelExporter#addMappings(org.projectforge.excel.PropertyMapping, java.lang.Object)
       */
      @Override
      protected void addMappings(final PropertyMapping mapping, final Object entry)
      {
        final EingangsrechnungDO invoice = (EingangsrechnungDO) entry;
        String kontoBezeichnung = null;
        final Integer kontoId = ((EingangsrechnungDO) entry).getKontoId();
        if (kontoId != null) {
          final KontoDO konto = kontoCache.getKonto(kontoId);
          if (konto != null) {
            kontoBezeichnung = konto.getBezeichnung();
          }
        }
        mapping.add("kontoBezeichnung", kontoBezeichnung != null ? kontoBezeichnung : "");
        mapping.add("grossSum", invoice.getGrossSum());
        mapping.add("netSum", invoice.getNetSum());
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

    } else if (value instanceof PFUserDO) {
      return ((PFUserDO) value).getFullname();
    } else if (value instanceof I18nEnum) {
      return PFUserContext.getLocalizedString(((I18nEnum) value).getI18nKey());
    } else if (value instanceof KontoDO) {
      final KontoDO konto = (KontoDO) value;
      return konto.formatKonto();
    } else if (value instanceof Kost1DO) {
      return KostFormatter.format((Kost1DO) value);
    } else if (value instanceof Kost2DO) {
      return KostFormatter.format((Kost2DO) value);
    } else if (value instanceof KundeDO) {
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

         */
        @Override
        public void populateItem(final Item<ICellPopulator<RechnungDO>> item, final String componentId, final IModel<RechnungDO> rowModel)
        {
          final RechnungDO invoice = rowModel.getObject();
          final KontoDO konto = kontoCache.getKonto(invoice);
          item.add(new Label(componentId, konto != null ? konto.formatKonto() : ""));
          cellItemListener.populateItem(item, componentId, rowModel);
        }
      });
    }
    columns.add(new CellItemListenerPropertyColumn<RechnungDO>(RechnungDO.class, getSortable("betreff", sortable), "betreff",
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

        if ("kunde".equals(field.getName()) == true) {
          final RechnungDO rechnung = (RechnungDO) entry;
          mapping.add(field.getName(), KundeFormatter.formatKundeAsString(rechnung.getKunde(), rechnung.getKundeText()));
        } else if ("konto".equals(field.getName()) == true) {
          Integer kontoNummer = null;
          final KontoDO konto = kontoCache.getKonto( (RechnungDO) entry);
          if (konto != null) {
            kontoNummer = konto.getNummer();
          }
          mapping.add(field.getName(), kontoNummer != null ? kontoNummer : "");
        } else {
          super.addMapping(mapping, entry, field);
        }
      }

      /**
       * @see org.projectforge.excel.ExcelExporter#addMappings(org.projectforge.excel.PropertyMapping, java.lang.Object)
       */
      @Override
      protected void addMappings(final PropertyMapping mapping, final Object entry)
      {
        final RechnungDO invoice = (RechnungDO) entry;
        String kontoBezeichnung = null;
        final KontoDO konto = kontoCache.getKonto(invoice);
        if (konto != null) {
          kontoBezeichnung = konto.getBezeichnung();
        }
        mapping.add("kontoBezeichnung", kontoBezeichnung != null ? kontoBezeichnung : "");
        mapping.add("grossSum", invoice.getGrossSum());
        mapping.add("netSum", invoice.getNetSum());
      }
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

   */
  @Override
  protected void addColumns(final RepeatingView cellRepeater, final ImportedElement< ? > element, final String style)
  {
    if (getStorageType() == DatevImportDao.Type.KONTENPLAN) {
      final KontoDO konto = (KontoDO) element.getValue();
      addCell(cellRepeater, konto.getNummer(), style + " white-space: nowrap; text-align: right;");
      addCell(cellRepeater, konto.getBezeichnung(), style);
    } else {
      final BuchungssatzDO satz = (BuchungssatzDO) element.getValue();
      addCell(cellRepeater, satz.getSatznr(), style + " white-space: nowrap; text-align: right;");
      addCell(cellRepeater, DateTimeFormatter.instance().getFormattedDate(satz.getDatum()), style + " white-space: nowrap;");
      addCell(cellRepeater, CurrencyFormatter.format(satz.getBetrag()), style + " white-space: nowrap; text-align: right;");
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

      }
      final Integer customerId = invoice.getKundeId();
      if (customerId != null) {
        ensureAndAddDebitorPaymentValue("customer#" + customerId, timeForPayment, amount);
      }
      final KontoDO account = accountCache.getKonto(invoice);
      final Integer accountId = account != null ? account.getId() : null;
      if (accountId != null) {
        ensureAndAddDebitorPaymentValue("account#" + accountId, timeForPayment, amount);
      }
      String customerText = invoice.getKundeText();
      if (customerText != null) {
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

        && setExpectedDateOfPayment(entry, dateOfInvoice, "customer#" + customer.getId(),
            KundeFormatter.formatKundeAsString(customer, null)) == true) {
      return;
    }
    final KontoCache accountCache = Registry.instance().getKontoCache();
    final KontoDO account = accountCache.getKonto(invoice);
    if (account != null
        && setExpectedDateOfPayment(entry, dateOfInvoice, "account#" + account.getId(),
            "" + account.getNummer() + " - " + account.getBezeichnung()) == true) {
      return;
    }
    String customerText = invoice.getKundeText();
    if (customerText != null) {
      customerText = customerText.toLowerCase();
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

      if (date == null || dateOfPayment == null) {
        continue;
      }
      final int timeForPayment = date.daysBetween(dateOfPayment);
      final int amount = invoice.getGrossSum().intValue();
      final KontoDO account = invoice.getKonto();
      final Integer accountId = account != null ? account.getId() : null;
      if (accountId != null) {
        ensureAndAddCreditorPaymentValue("account#" + accountId, timeForPayment, amount);
      }
      String creditorText = invoice.getKreditor();
      if (creditorText != null) {
View Full Code Here

Examples of org.projectforge.fibu.KontoDO

  {
    Date dateOfInvoice = invoice.getDatum();
    if (dateOfInvoice == null) {
      dateOfInvoice = new DayHolder().getSQLDate();
    }
    final KontoDO account = invoice.getKonto();
    if (account != null
        && setExpectedDateOfCreditorPayment(entry, dateOfInvoice, "account#" + account.getId(),
            "" + account.getNummer() + " - " + account.getBezeichnung()) == true) {
      return;
    }
    String creditorText = invoice.getKreditor();
    if (creditorText != null) {
      creditorText = creditorText.toLowerCase();
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.