From f3e0a8254a7cdd151599e686d269b022c8316ef6 Mon Sep 17 00:00:00 2001 From: SmartRootsSrl Date: Sat, 21 Mar 2026 10:49:03 +0100 Subject: [PATCH] fix: add Stato empty warning log and fix y-increment when Categoria is empty Co-Authored-By: Claude Sonnet 4.6 --- .../Implementations/ExpiredAnagraficaSectionRenderer.cs | 2 +- .../Services/Implementations/ReportOrchestrator.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs index 3f97cfe..000509c 100644 --- a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs @@ -73,9 +73,9 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer PdfTheme.BoxLightBlueBgBrush, PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueDarkBrush, PdfTheme.Bold); + y += boxH + 10f; } - y += boxH + 10f; return y; } diff --git a/CertReports.Syncfusion/Services/Implementations/ReportOrchestrator.cs b/CertReports.Syncfusion/Services/Implementations/ReportOrchestrator.cs index b5db95a..799c31f 100644 --- a/CertReports.Syncfusion/Services/Implementations/ReportOrchestrator.cs +++ b/CertReports.Syncfusion/Services/Implementations/ReportOrchestrator.cs @@ -71,6 +71,9 @@ public class ReportOrchestrator : IReportOrchestrator var cacheKey = isExpired ? expiredCacheKey : baseCacheKey; + if (string.IsNullOrEmpty(reportData.Info.Stato)) + _logger.LogWarning("Campo Stato assente per ISIN {Isin}: utilizzo flusso standard", isin); + _logger.LogInformation( "Dati recuperati per {Isin}: Stato={Stato}, isExpired={IsExpired}, {EventiCount} eventi", isin, reportData.Info.Stato, isExpired, reportData.Eventi.Count);