chore: report tweaks
This commit is contained in:
@@ -119,7 +119,6 @@ export class ExpenseReporter {
|
|||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
<th>Total</th>
|
<th>Total</th>
|
||||||
<th>Count</th>
|
<th>Count</th>
|
||||||
<th>Average</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
${data.summary.byCategory
|
${data.summary.byCategory
|
||||||
.map(
|
.map(
|
||||||
@@ -128,7 +127,6 @@ export class ExpenseReporter {
|
|||||||
<td>${cat.category}</td>
|
<td>${cat.category}</td>
|
||||||
<td>${formatCurrency(cat.total)}</td>
|
<td>${formatCurrency(cat.total)}</td>
|
||||||
<td>${cat.count}</td>
|
<td>${cat.count}</td>
|
||||||
<td>${formatCurrency(cat.total / cat.count)}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
@@ -140,6 +138,7 @@ export class ExpenseReporter {
|
|||||||
<h2>Detailed Expenses</h2>
|
<h2>Detailed Expenses</h2>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>ID</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
@@ -149,6 +148,7 @@ export class ExpenseReporter {
|
|||||||
.map(
|
.map(
|
||||||
exp => `
|
exp => `
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>${exp.id}</td>
|
||||||
<td>${formatDate(exp.createdAt)}</td>
|
<td>${formatDate(exp.createdAt)}</td>
|
||||||
<td>${exp.description}</td>
|
<td>${exp.description}</td>
|
||||||
<td>${exp.category.name}</td>
|
<td>${exp.category.name}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user