public String getBezeichnung() { return konto.getBezeichnung(); }
/** * Formats the account as string: "[nummer] [title]", e. g. "11000 Micromata GmbH" * * @param konto */ public static String formatKonto(final KontoDO konto) { return String.valueOf(konto.getNummer()) + " " + konto.getBezeichnung(); }
@Override public String getTooltip(final BuchungssatzDO satz) { final KontoDO konto = satz != null ? satz.getKonto() : null; if (konto == null) { return null; } else { return konto.getBezeichnung(); } } });
@Override public int hashCode() { final HashCodeBuilder hcb = new HashCodeBuilder(); hcb.append(this.getNummer()); hcb.append(this.getBezeichnung()); return hcb.toHashCode(); }
@Override protected String formatLabel(final KontoDO value) { if (value == null) { return ""; } return String.valueOf(value.getNummer()) + " - " + value.getBezeichnung(); }
@Override public String getTooltip(final BuchungssatzDO satz) { final KontoDO gegenKonto = satz != null ? satz.getGegenKonto() : null; if (gegenKonto == null) { return null; } else { return gegenKonto.getBezeichnung(); } } });
@Override protected String getTooltip() { final KontoDO konto = getModelObject(); if (konto == null) { return ""; } return String.valueOf(konto.getNummer()) + " - " + konto.getBezeichnung(); }
@Override public boolean equals(final Object o) { if (o instanceof KontoDO) { final KontoDO other = (KontoDO) o; if (ObjectUtils.equals(this.getNummer(), other.getNummer()) == false) { return false; } return ObjectUtils.equals(this.getBezeichnung(), other.getBezeichnung()); } return false; }
private void setExpectedTimeOfPayment(final LiquidityEntry entry, final EingangsrechnungDO invoice) { 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(); if (setExpectedDateOfCreditorPayment(entry, dateOfInvoice, "creditor:" + creditorText, creditorText) == true) { return; } if (creditorText.length() > 5) { creditorText = creditorText.substring(0, 5); } if (setExpectedDateOfCreditorPayment(entry, dateOfInvoice, "shortCreditor:" + creditorText, creditorText) == true) { return; } } }
/** * @see ExcelExporter#addMappings(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()); } };
/** * @see ExcelExporter#addMappings(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()); } };
if (account != null && setExpectedDateOfPayment(entry, dateOfInvoice, "account#" + account.getId(), "" + account.getNummer() + " - " + account.getBezeichnung()) == true) { return;
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();
for (final KontoDO konto : list) { mapping.add(AccountsCol.NUMBER, konto.getNummer()); mapping.add(AccountsCol.NAME, konto.getBezeichnung()); mapping.add(AccountsCol.DATE_OF_LAST_MODIFICATION, konto.getLastUpdate()); mapping.add(AccountsCol.DATE_OF_CREATION, konto.getCreated());