diff --git a/EveryThing/EveryThing.csproj b/EveryThing/EveryThing.csproj index 7733d4f..5dd76eb 100644 --- a/EveryThing/EveryThing.csproj +++ b/EveryThing/EveryThing.csproj @@ -34,6 +34,7 @@ + diff --git a/EveryThing/Pages/CodeTableItems/Index.cshtml.cs b/EveryThing/Pages/CodeTableItems/Index.cshtml.cs index c2fa72b..b62b2b7 100644 --- a/EveryThing/Pages/CodeTableItems/Index.cshtml.cs +++ b/EveryThing/Pages/CodeTableItems/Index.cshtml.cs @@ -112,7 +112,7 @@ namespace EveryThing.Pages.CodeTableItems sellingPrice = projectPartItem.SellingPrice; differenceInPricePercentage = projectPartItem.DifferenceInPricePercentage; materialDimensions = projectPartItem.MaterialDimensions; - material = projectPartItem.Material.Title; + material = projectPartItem?.Material?.Title; } } diff --git a/EveryThing/Pages/Invoices/Print.cshtml b/EveryThing/Pages/Invoices/Print.cshtml index c9dec08..c35c9c3 100644 --- a/EveryThing/Pages/Invoices/Print.cshtml +++ b/EveryThing/Pages/Invoices/Print.cshtml @@ -61,6 +61,29 @@ +