@model (InvoiceDetailsModel Invoice, bool ShowAddress) @{ var invoice = Model.Invoice; var grouped = invoice.Payments .GroupBy(payment => payment.GetPaymentMethodId()?.PaymentType) .Where(entities => entities.Key != null); } @if (invoice.Overpaid) { var usedPaymentMethods = invoice.CryptoPayments.Count(p => p.Paid != null);
Payment method | @if (Model.ShowAddress) {Destination | } @if (invoice.HasRates) {Rate | }Total due | @if (invoice.StillDue) {Still due | } else if (invoice.Overpaid) {Overpaid | }Paid |
---|---|---|---|---|---|---|
@payment.PaymentMethod | @if (Model.ShowAddress) {
|
}
@if (invoice.HasRates)
{
@payment.Rate | }@payment.TotalDue | @if (invoice.StillDue) {@if (payment.Due != null) { @payment.Due } | } else if (invoice.Overpaid) {@if (payment.Overpaid != null) { @payment.Overpaid } | }@if (payment.Paid != null) { @payment.Paid } |