diff --git a/BTCPayServer/Views/Invoice/Invoice.cshtml b/BTCPayServer/Views/Invoice/Invoice.cshtml index 0dc1ed26c..9c796fad2 100644 --- a/BTCPayServer/Views/Invoice/Invoice.cshtml +++ b/BTCPayServer/Views/Invoice/Invoice.cshtml @@ -183,47 +183,7 @@ } -
-
-

Paid summary

- - - - - - - - @if (Model.StatusException == InvoiceExceptionStatus.PaidOver) - { - - } - - - - @foreach (var payment in Model.CryptoPayments) - { - - - - - - @if (Model.StatusException == InvoiceExceptionStatus.PaidOver) - { - - } - - } - -
Payment methodRatePaidDueOverpaid
@payment.PaymentMethod@payment.Rate@payment.Paid@payment.Due@payment.Overpaid
-
-
- @{ - var grouped = Model.Payments.GroupBy(payment => payment.GetPaymentMethodId().PaymentType); - } - @foreach (var paymentGroup in grouped) - { - - } +
diff --git a/BTCPayServer/Views/Invoice/ListInvoices.cshtml b/BTCPayServer/Views/Invoice/ListInvoices.cshtml index c7e821fb3..1ef624824 100644 --- a/BTCPayServer/Views/Invoice/ListInvoices.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoices.cshtml @@ -275,7 +275,7 @@
@* Leaving this as partial because it abstracts complexity of Invoice Payments *@ - +
diff --git a/BTCPayServer/Views/Invoice/ListInvoicesPaymentsPartial.cshtml b/BTCPayServer/Views/Invoice/ListInvoicesPaymentsPartial.cshtml index 73b9e997b..ad9cd4ea4 100644 --- a/BTCPayServer/Views/Invoice/ListInvoicesPaymentsPartial.cshtml +++ b/BTCPayServer/Views/Invoice/ListInvoicesPaymentsPartial.cshtml @@ -1,4 +1,5 @@ -@model InvoiceDetailsModel +@model (InvoiceDetailsModel Invoice, bool ShowAddress) +@{ var invoice = Model.Invoice; } @inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary
@@ -8,28 +9,34 @@ Payment method + @if (Model.ShowAddress) + { Address + } Rate Paid Due - @if (Model.StatusException == InvoiceExceptionStatus.PaidOver) + @if (invoice.StatusException == InvoiceExceptionStatus.PaidOver) { Overpaid } - @foreach (var payment in Model.CryptoPayments) + @foreach (var payment in invoice.CryptoPayments) { @payment.PaymentMethod + @if (Model.ShowAddress) + { @payment.Address + } @payment.Rate @payment.Paid @payment.Due - @if (Model.StatusException == InvoiceExceptionStatus.PaidOver) + @if (invoice.StatusException == InvoiceExceptionStatus.PaidOver) { @payment.Overpaid } @@ -40,7 +47,7 @@
@{ - var grouped = Model.Payments.GroupBy(payment => payment.GetPaymentMethodId().PaymentType); + var grouped = invoice.Payments.GroupBy(payment => payment.GetPaymentMethodId().PaymentType); } @foreach (var paymentGroup in grouped) {