Fix: In KI Chat wird kein Zeiterfassung angezeigt

This commit is contained in:
2026-07-22 12:25:57 +02:00
parent 3e70b7a0aa
commit cecefb2690
3 changed files with 4 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ namespace AICore.Context.Summary.Function
internal ServiceRecordDocumantationFCS(IEnumerable<ServiceRecordContextEntry> serviceRecords, CustomerNavigationContextEntry customer, string costBearer, string supportConcept, string dokutext)
: base()
{
Context = serviceRecords;
//Context = serviceRecords;
ServiceRecords = serviceRecords;
Customer = customer;
CostBearer = costBearer;

View File

@@ -17,11 +17,12 @@ namespace AICore.Context.Summary.Navigation
public string SupportConcept { get; set; }
[JsonPropertyName("Zeiterfassungseinträge")]
public override IEnumerable<ServiceRecordContextEntry> DataContext { get; set; }
public IEnumerable<ServiceRecordContextEntry> ServiceRecords { get; set; }
internal ServiceRecordNavigationCS(IEnumerable<ServiceRecordContextEntry> serviceRecords, CustomerNavigationContextEntry customer, string costBearer, string supportConcept)
: base(serviceRecords)
{
ServiceRecords = serviceRecords;
Customer = customer;
CostBearer = costBearer;
SupportConcept = supportConcept;

View File

@@ -48,7 +48,7 @@ namespace AICore.Context.SummaryParser
sb.AppendLine($"</Klient>");
sb.AppendLine();
sb.AppendLine($"<Zeiterfassungseinträge>");
sb.AppendLine(ToCsvString(summary.DataContext));
sb.AppendLine(ToCsvString(summary.ServiceRecords));
sb.AppendLine($"</Zeiterfassungseinträge>");
sb.AppendLine();
return sb.ToString();