Add payouts report (#5320)

This commit is contained in:
Andrew Camilleri
2023-09-19 02:55:15 +02:00
committed by GitHub
parent 77d8e202d3
commit 00acbccd7f
6 changed files with 138 additions and 9 deletions

View File

@@ -538,7 +538,8 @@ namespace BTCPayServer.Controllers
{
var ppBlob = item.PullPayment?.GetBlob();
var payoutBlob = item.Payout.GetBlob(_jsonSerializerSettings);
string payoutSource;
item.Payout.PullPaymentData = item.PullPayment;
string payoutSource = item.Payout.GetPayoutSource(_jsonSerializerSettings);
if (payoutBlob.Metadata?.TryGetValue("source", StringComparison.InvariantCultureIgnoreCase,
out var source) is true)
{