fix: Verwendungszweck steht in der Buchungsliste vorn

Gross stand die Kategorie, klein der Zweck – gesucht wird aber nach dem
Zweck. Jetzt oben "Coop Pratteln", darunter klein "Lebensmittel"; das
Symbol trug die Kategorie ohnehin schon.

Ausserdem war der Knopf zum Entfernen eines rueckgaengig gemachten
Imports ein unbeschriftetes Papierkorb-Symbol und damit unauffindbar.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Guido
2026-08-21 20:28:39 +02:00
co-authored by Claude Opus 5
parent bc5349f193
commit 6322b65306
2 changed files with 9 additions and 6 deletions
+6 -2
View File
@@ -186,12 +186,16 @@ export default function Transactions() {
const to = accountById[tx.to_account_id]?.name || "?";
return { icon: "arrow-left-right", color: "#6b7480", title: `${from} → ${to}`, sub: tx.description || t("transactions.transfer") };
}
// Oben steht, WOFÜR die Zahlung war – danach sucht man in der Liste.
// Die Kategorie ist die Einordnung und steht klein darunter; das Symbol
// trägt sie ohnehin schon.
const cat = tx.category_id ? categoryById[tx.category_id] : null;
const zweck = tx.payee || tx.description;
return {
icon: cat?.icon || "more-horizontal",
color: cat?.color || "#6b7480",
title: cat?.name || t("transactions.uncategorized"),
sub: tx.payee || tx.description || "",
title: zweck || cat?.name || t("transactions.uncategorized"),
sub: zweck ? (cat?.name || t("transactions.uncategorized")) : "",
};
}