diff --git a/web/src/ledger.ts b/web/src/ledger.ts
index 1f40579..680e1f8 100644
--- a/web/src/ledger.ts
+++ b/web/src/ledger.ts
@@ -35,6 +35,7 @@ function renderTransactions(postings: Posting[]) {
const rows = _.map(postings, (p) => {
const purchase = formatCurrency(p.amount);
let market = "",
+ date = p.timestamp.format("DD MMM YYYY"),
change = "",
changePercentage = "",
changeClass = "",
@@ -61,7 +62,7 @@ function renderTransactions(postings: Posting[]) {
}
const markup = `
- ${p.timestamp.format("DD MMM YYYY")} |
+ ${date} |
${p.payee} |
${p.account} |
${purchase} |
@@ -73,6 +74,7 @@ function renderTransactions(postings: Posting[]) {
`;
return {
+ date: date,
markup: markup,
posting: p
};
@@ -89,7 +91,7 @@ function renderTransactions(postings: Posting[]) {
}
function filterTransactions(
- rows: { posting: Posting; markup: string }[],
+ rows: { date: string; posting: Posting; markup: string }[],
filter: string
) {
let filterRegex = new RegExp(".*", "i");
@@ -100,7 +102,9 @@ function filterTransactions(
return _.filter(
rows,
(r) =>
- filterRegex.test(r.posting.account) || filterRegex.test(r.posting.payee)
+ filterRegex.test(r.posting.account) ||
+ filterRegex.test(r.posting.payee) ||
+ filterRegex.test(r.date)
);
}
diff --git a/web/static/index.html b/web/static/index.html
index 4449cfc..fffba8f 100644
--- a/web/static/index.html
+++ b/web/static/index.html
@@ -287,7 +287,7 @@