1 | @model HeuristicLab.Services.Optimization.Web.Models.InvoiceModel
|
---|
2 |
|
---|
3 | @{
|
---|
4 | ViewBag.Title = "Invoices Overview";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <h2>Your invoices:</h2>
|
---|
8 |
|
---|
9 | @if (Model.OverdueInvoices.Count > 0) {
|
---|
10 | <h3>Overdue Invoices:</h3>
|
---|
11 | <table>
|
---|
12 | <thead><tr><th>Invoice Id</th><th>Payment</th><th>Payment Due</th><th>Order Id</th><th>Invoice Lines</th></tr></thead>
|
---|
13 | <tbody>
|
---|
14 | @foreach (var overdueInvoice in Model.OverdueInvoices) {
|
---|
15 | <tr>
|
---|
16 | <td>@overdueInvoice.InvoiceId</td>
|
---|
17 | <td>@((from i in overdueInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro</td>
|
---|
18 | <td>@overdueInvoice.Due</td>
|
---|
19 | <td>@overdueInvoice.OrderId</td>
|
---|
20 | <td>
|
---|
21 | <table>
|
---|
22 | <thead><tr><th>Invoice Line Id</th><th>Product</th><th>Price</th><th>Quantity</th></tr></thead>
|
---|
23 | <tbody>
|
---|
24 | @foreach (var line in overdueInvoice.InvoiceLines) {
|
---|
25 | <tr>
|
---|
26 | <td>@line.InvoiceLineId</td><td>@line.Product.Name</td><td>@line.ProductPrice Euro</td><td>@line.Quantity</td>
|
---|
27 | </tr>
|
---|
28 | }
|
---|
29 | </tbody>
|
---|
30 | </table>
|
---|
31 | </td>
|
---|
32 | </tr>
|
---|
33 | }
|
---|
34 | </tbody>
|
---|
35 | </table>
|
---|
36 | }
|
---|
37 |
|
---|
38 | @if (Model.OpenInvoices.Count > 0) {
|
---|
39 | <h3>Open Invoices:</h3>
|
---|
40 | <table>
|
---|
41 | <thead><tr><th>Invoice Id</th><th>Payment</th><th>Payment Due</th><th>Order Id</th><th>Invoice Lines</th></tr></thead>
|
---|
42 | <tbody>
|
---|
43 | @foreach (var openInvoice in Model.OpenInvoices) {
|
---|
44 | <tr>
|
---|
45 | <td>@openInvoice.InvoiceId</td>
|
---|
46 | <td>@((from i in openInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro</td>
|
---|
47 | <td>@openInvoice.Due</td>
|
---|
48 | <td>@openInvoice.OrderId</td>
|
---|
49 | <td>
|
---|
50 | <table>
|
---|
51 | <thead><tr><th>Invoice Line Id</th><th>Product</th><th>Price</th><th>Quantity</th></tr></thead>
|
---|
52 | <tbody>
|
---|
53 | @foreach (var line in openInvoice.InvoiceLines) {
|
---|
54 | <tr>
|
---|
55 | <td>@line.InvoiceLineId</td><td>@line.Product.Name</td><td>@line.ProductPrice Euro</td><td>@line.Quantity</td>
|
---|
56 | </tr>
|
---|
57 | }
|
---|
58 | </tbody>
|
---|
59 | </table>
|
---|
60 | </td>
|
---|
61 | </tr>
|
---|
62 | }
|
---|
63 | </tbody>
|
---|
64 | </table>
|
---|
65 | }
|
---|
66 |
|
---|
67 | @if (Model.PaidInvoices.Count > 0) {
|
---|
68 | <h3>Paid invoices:</h3>
|
---|
69 | <table>
|
---|
70 | <thead><tr><th>Invoice Id</th><th>Payment</th><th>Payment Due</th><th>Order Id</th><th>Invoice Lines</th></tr></thead>
|
---|
71 | <tbody>
|
---|
72 | @foreach (var paidInvoice in Model.PaidInvoices) {
|
---|
73 | <tr>
|
---|
74 | <td>@paidInvoice.InvoiceId</td>
|
---|
75 | <td>@((from i in paidInvoice.InvoiceLines select i.Quantity * i.ProductPrice).Sum()) Euro</td>
|
---|
76 | <td>@paidInvoice.Due</td>
|
---|
77 | <td>@paidInvoice.OrderId</td>
|
---|
78 | <td>
|
---|
79 | <table>
|
---|
80 | <thead><tr><th>Invoice Line Id</th><th>Product</th><th>Price</th><th>Quantity</th></tr></thead>
|
---|
81 | <tbody>
|
---|
82 | @foreach (var line in paidInvoice.InvoiceLines) {
|
---|
83 | <tr>
|
---|
84 | <td>@line.InvoiceLineId</td><td>@line.Product.Name</td><td>@line.ProductPrice Euro</td><td>@line.Quantity</td>
|
---|
85 | </tr>
|
---|
86 | }
|
---|
87 | </tbody>
|
---|
88 | </table>
|
---|
89 | </td>
|
---|
90 | </tr>
|
---|
91 | }
|
---|
92 | </tbody>
|
---|
93 | </table>
|
---|
94 | } |
---|