@model HeuristicLab.Services.Optimization.Web.Models.InvoiceModel @{ ViewBag.Title = "Invoices Overview"; }

Your invoices:

@if (Model.OverdueInvoices.Count > 0) {

Overdue Invoices:

@foreach (var overdueInvoice in Model.OverdueInvoices) { }
Invoice IdPaymentPayment DueOrder IdInvoice Lines
@overdueInvoice.InvoiceId @((from i in overdueInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro @overdueInvoice.Due @overdueInvoice.OrderId @foreach (var line in overdueInvoice.InvoiceLines) { }
Invoice Line IdProductPriceQuantity
@line.InvoiceLineId@line.Product.Name@line.ProductPrice Euro@line.Quantity
} @if (Model.OpenInvoices.Count > 0) {

Open Invoices:

@foreach (var openInvoice in Model.OpenInvoices) { }
Invoice IdPaymentPayment DueOrder IdInvoice Lines
@openInvoice.InvoiceId @((from i in openInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro @openInvoice.Due @openInvoice.OrderId @foreach (var line in openInvoice.InvoiceLines) { }
Invoice Line IdProductPriceQuantity
@line.InvoiceLineId@line.Product.Name@line.ProductPrice Euro@line.Quantity
} @if (Model.PaidInvoices.Count > 0) {

Paid invoices:

@foreach (var paidInvoice in Model.PaidInvoices) { }
Invoice IdPaymentPayment DueOrder IdInvoice Lines
@paidInvoice.InvoiceId @((from i in paidInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro @paidInvoice.Due @paidInvoice.OrderId @foreach (var line in paidInvoice.InvoiceLines) { }
Invoice Line IdProductPriceQuantity
@line.InvoiceLineId@line.Product.Name@line.ProductPrice Euro@line.Quantity
}