Make sure perk contributions are not accounted until paid

This commit is contained in:
nicolas.dorier 2019-07-15 17:01:12 +09:00
parent 8d3cdd39ca
commit 1c055a7282
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.3.123</Version>
<Version>1.0.3.124</Version>
</PropertyGroup>
</Project>