From 1c055a728286a9d253fdbf8d0e7e073ea8a26de6 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 15 Jul 2019 17:01:12 +0900 Subject: [PATCH] Make sure perk contributions are not accounted until paid --- BTCPayServer/Services/Apps/AppService.cs | 2 +- Build/Version.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Services/Apps/AppService.cs b/BTCPayServer/Services/Apps/AppService.cs index 22da9c734..689f284ca 100644 --- a/BTCPayServer/Services/Apps/AppService.cs +++ b/BTCPayServer/Services/Apps/AppService.cs @@ -101,7 +101,7 @@ namespace BTCPayServer.Services.Apps var pendingPayments = GetContributionsByPaymentMethodId(settings.TargetCurrency, pendingInvoices, !settings.EnforceTargetAmount); var currentPayments = GetContributionsByPaymentMethodId(settings.TargetCurrency, completeInvoices, !settings.EnforceTargetAmount); - var perkCount = invoices + var perkCount = paidInvoices .Where(entity => !string.IsNullOrEmpty(entity.ProductInformation.ItemCode)) .GroupBy(entity => entity.ProductInformation.ItemCode) .ToDictionary(entities => entities.Key, entities => entities.Count()); diff --git a/Build/Version.csproj b/Build/Version.csproj index 2ead6efc5..0682de268 100644 --- a/Build/Version.csproj +++ b/Build/Version.csproj @@ -1,5 +1,5 @@ - 1.0.3.123 + 1.0.3.124