Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jSylvestre committed Mar 8, 2024
1 parent 7f99330 commit ee4b784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sloth.Web/Controllers/ReportsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public async Task<IActionResult> DownloadableTransactions(TransactionsFilterMode
};

model.Transactions = await DbContext.Transactions.Include(a => a.Transfers).Include(a => a.Metadata)
.Where(t => t.Source.Team.Slug == TeamSlug && t.TransactionDate >= filter.From && t.TransactionDate <= filter.To).Select(TransactionWithTransfers.Projection()).ToListAsync();
.Where(t => t.Source.Team.Slug == TeamSlug && t.TransactionDate >= filter.From && t.TransactionDate <= filter.To).OrderBy(a => a.Id).ThenBy(a => a.TransactionDate).Select(TransactionWithTransfers.Projection()).ToListAsync();

var team = await DbContext.Teams.FirstAsync(t => t.Slug == TeamSlug);
ViewBag.Title = $"Transactions with Transfers - {team.Name}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class TransfersReportViewModel
public class TransactionWithTransfers
{
public string Id { get; set; }
public string DisplayId => $"...{Id[^4..]}"; // last 4 characters of the id

public string Status { get; set; }

Expand Down

0 comments on commit ee4b784

Please sign in to comment.