fix: Erkennungstext trifft nur noch an Wortgrenzen
Der Erkennungs-Text eines Kontos wurde als blosser Teilstring gesucht. Am EUR-Konto stand „Euro" – der steckt auch in „PayPal Europe", „Europa-Park" und „EUROBUS". Jede solche Zahlung wurde dadurch zum Uebertrag auf dieses Konto, das Geld dort zusaetzlich gutgeschrieben und der Saldo lief um mehr als tausend Euro daneben. Gesucht wird jetzt nur an Wortgrenzen; eine Kartenendung wie „6543" schlaegt damit auch nicht mehr mitten in einer laengeren Kontonummer an. Das Kontoformular warnt zusaetzlich bei sehr kurzen Erkennungstexten. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,8 @@
|
||||
"total": "Gesamt",
|
||||
"empty": "Noch keine Konten. Lege dein erstes Konto an.",
|
||||
"deleteConfirm": "Dieses Konto und alle zugehörigen Buchungen löschen?",
|
||||
"openingDateHint": "Stand am Ende dieses Tages. Buchungen bis dahin zählen nicht zum Kontostand, bleiben aber in Liste und Auswertungen. Ohne Stichtag zählt alles."
|
||||
"openingDateHint": "Stand am Ende dieses Tages. Buchungen bis dahin zählen nicht zum Kontostand, bleiben aber in Liste und Auswertungen. Ohne Stichtag zählt alles.",
|
||||
"shortIdentWarning": "Kurze Erkennungstexte treffen leicht Fremdes: âEuro“ steckt auch in âEuropa-Park“ oder âPayPal Europe“. Solche Buchungen werden dann fälschlich zu Ãberträgen. Nimm lieber etwas Eindeutiges wie die IBAN oder âRevolut**5064*“."
|
||||
},
|
||||
"accountTypes": {
|
||||
"girokonto": "Girokonto",
|
||||
|
||||
@@ -166,7 +166,8 @@
|
||||
"total": "Total",
|
||||
"empty": "No accounts yet. Create your first account.",
|
||||
"deleteConfirm": "Delete this account and all its transactions?",
|
||||
"openingDateHint": "Balance at the end of that day. Bookings up to then don't count toward the balance but stay in the list and reports. Without a date, everything counts."
|
||||
"openingDateHint": "Balance at the end of that day. Bookings up to then don't count toward the balance but stay in the list and reports. Without a date, everything counts.",
|
||||
"shortIdentWarning": "Short match texts hit unrelated bookings: “Euro” also occurs in “Europa-Park” or “PayPal Europe”, turning those into transfers by mistake. Prefer something unique such as the IBAN."
|
||||
},
|
||||
"accountTypes": {
|
||||
"girokonto": "Checking",
|
||||
|
||||
@@ -340,6 +340,10 @@ export default function Accounts() {
|
||||
</button>
|
||||
</div>
|
||||
))}
|
||||
{form.identifiers.some((i) => i.kind === "text" && i.value.trim().length > 0
|
||||
&& i.value.trim().length < 6) && (
|
||||
<p className="muted small">{t("accounts.shortIdentWarning")}</p>
|
||||
)}
|
||||
<button type="button" className="btn sm"
|
||||
onClick={() => setForm({ ...form, identifiers: [...form.identifiers, { kind: "iban", value: "" }] })}>
|
||||
<Icon name="plus" size={15} /> {t("accounts.addIdentifier")}
|
||||
|
||||
Reference in New Issue
Block a user