From 16cf05583499a88b36699185ce699a4b622f4072 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 23 Jan 2024 00:02:47 +0100 Subject: [PATCH] GraphEntry: Update StringSimple --- Elwig/Helpers/Billing/GraphEntry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Elwig/Helpers/Billing/GraphEntry.cs b/Elwig/Helpers/Billing/GraphEntry.cs index 3647350..b76d776 100644 --- a/Elwig/Helpers/Billing/GraphEntry.cs +++ b/Elwig/Helpers/Billing/GraphEntry.cs @@ -37,7 +37,7 @@ namespace Elwig.Helpers.Billing { } public List Contracts { get; set; } - public string ContractsStringSimple => Contracts.Count != 0 ? string.Join(", ", Contracts.Select(c => c.Listing)) : "-"; + public string ContractsStringSimple => (Abgewertet ? "Abgew.: " : "") + (Contracts.Count != 0 ? (Contracts.Count >= 25 ? "Restliche Sorten" : string.Join(", ", Contracts.Select(c => c.Listing))) : "-"); public string ContractsString => Contracts.Count != 0 ? string.Join("\n", Contracts.Select(c => c.FullName)) : "-"; private readonly int Precision;