diff --git a/EveryThing/Pages/Projects/Edit.cshtml b/EveryThing/Pages/Projects/Edit.cshtml
index 1214ddf..9aa0b04 100644
--- a/EveryThing/Pages/Projects/Edit.cshtml
+++ b/EveryThing/Pages/Projects/Edit.cshtml
@@ -199,7 +199,7 @@
@foreach (var invoice in Model.Invoices.Where(x => x.Type == Models.Invoice.Invoice.InvoiceType.Order))
{
- x.ProjectPartItem.IdProjectPartFk) ?? Array.Empty())">
+ x.ProjectPartItem?.IdProjectPartFk ?? 0) ?? Array.Empty())">
|
@Html.DisplayFor(modelItem => invoice.InvoiceYear) - @Html.DisplayFor(modelItem => invoice.InvoiceNumber)
|
@@ -265,7 +265,7 @@
@foreach (var invoice in Model.Invoices.Where(x => x.Type == Models.Invoice.Invoice.InvoiceType.DeliveryNote))
{
- x.ProjectPartItem.IdProjectPartFk) ?? Array.Empty())">
+ x.ProjectPartItem?.IdProjectPartFk ?? 0) ?? Array.Empty())">
|
@if (invoice.State == Invoice.InvoiceState.Confirmed)
{
@@ -335,7 +335,7 @@
|
@foreach (var invoice in Model.Invoices.Where(x => x.Type == Models.Invoice.Invoice.InvoiceType.Invoice))
{
- x.ProjectPartItem.IdProjectPartFk) ?? Array.Empty())">
+ x.ProjectPartItem?.IdProjectPartFk ?? 0) ?? Array.Empty())">
|
@Html.DisplayFor(modelItem => invoice.InvoiceYear) - @Html.DisplayFor(modelItem => invoice.InvoiceNumber)
|
@@ -537,7 +537,7 @@
@foreach (var invoice in Model.Invoices.Where(x => x.Type == Invoice.InvoiceType.Cooperation))
{
- x.ProjectPartItem.IdProjectPartFk) ?? Array.Empty())">
+ x.ProjectPartItem?.IdProjectPartFk ?? 0) ?? Array.Empty())">
|
@Html.DisplayFor(modelItem => invoice.InvoiceYear) - @Html.DisplayFor(modelItem => invoice.InvoiceNumber)
|