fix: add Stato empty warning log and fix y-increment when Categoria is empty

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 10:49:03 +01:00
parent 2e320e6511
commit f3e0a8254a
2 changed files with 4 additions and 1 deletions

View File

@@ -73,9 +73,9 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer
PdfTheme.BoxLightBlueBgBrush, PdfTheme.AccentBlueBrush, PdfTheme.BoxLightBlueBgBrush, PdfTheme.AccentBlueBrush,
PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueDarkBrush, PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueDarkBrush,
PdfTheme.Bold); PdfTheme.Bold);
y += boxH + 10f;
} }
y += boxH + 10f;
return y; return y;
} }

View File

@@ -71,6 +71,9 @@ public class ReportOrchestrator : IReportOrchestrator
var cacheKey = isExpired ? expiredCacheKey : baseCacheKey; 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( _logger.LogInformation(
"Dati recuperati per {Isin}: Stato={Stato}, isExpired={IsExpired}, {EventiCount} eventi", "Dati recuperati per {Isin}: Stato={Stato}, isExpired={IsExpired}, {EventiCount} eventi",
isin, reportData.Info.Stato, isExpired, reportData.Eventi.Count); isin, reportData.Info.Stato, isExpired, reportData.Eventi.Count);