mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* Add reporting feature * Remove nodatime * Add summaries * work... * Add chart title * Fix error * Allow to set hour in the field * UI updates * Fix fake data * ViewDefinitions can be dynamic * Add items sold * Sticky table headers * Update JS and remove jQuery usages * JS click fix * Handle tag all invoices for app * fix dup row in items report * Can cancel invoice request * Add tests * Fake data for items sold * Rename Items to Products, improve navigation F5 * Use bordered table for summaries --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
20 lines
543 B
C#
20 lines
543 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BTCPayServer.Client.Models;
|
|
using BTCPayServer.Services.Reporting;
|
|
|
|
namespace BTCPayServer.Services
|
|
{
|
|
public class ReportService
|
|
{
|
|
public ReportService(IEnumerable<ReportProvider> reportProviders)
|
|
{
|
|
foreach (var r in reportProviders)
|
|
{
|
|
ReportProviders.Add(r.Name, r);
|
|
}
|
|
}
|
|
|
|
public Dictionary<string, ReportProvider> ReportProviders { get; } = new Dictionary<string, ReportProvider>();
|
|
}
|
|
}
|