deduct network from contributions + removed unsued Enabled properties

This commit is contained in:
Kukks 2019-02-24 09:53:56 +01:00 committed by nicolas.dorier
parent c134277514
commit 249b8abf03
2 changed files with 1 additions and 5 deletions

View file

@ -71,8 +71,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
public string EmbeddedCSS { get; set; }
[Display(Name = "Allow payee to create invoices in their own denomination")]
public bool AllowCustomPaymentAmounts { get; set; }
public bool Enabled { get; set; }
}
public class ViewPaymentRequestViewModel
@ -107,8 +105,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
}
}
public bool Enabled { get; set; }
public bool AllowCustomPaymentAmounts { get; set; }

View file

@ -346,7 +346,7 @@ namespace BTCPayServer.Services.Apps
// Else, we just sum the payments
return payments
.Select(pay => (Key: pay.GetPaymentMethodId().ToString(), Value: pay.GetCryptoPaymentData().GetValue()))
.Select(pay => (Key: pay.GetPaymentMethodId().ToString(), Value: pay.GetCryptoPaymentData().GetValue() - pay.NetworkFee))
.ToArray();
})
.GroupBy(p => p.Key)