diff --git a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs index c4528f6..cf357c8 100644 --- a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs @@ -33,7 +33,7 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer float y = 0f; // ── TITOLO ──────────────────────────────────────────────────── - y = DrawTitle(g, info, PageW, y); + y = DrawTitle(g, info, PageW, y, data.ShowNatixis); // ── SEZIONE A: CARATTERISTICHE PRODOTTO ─────────────────────── y = DrawSectionLabel(g, "Caratteristiche Prodotto", y); @@ -69,7 +69,7 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer // TITOLO — Solo Tipologia box (niente Data/Bid/Ask) // ═══════════════════════════════════════════════════════════════ - private float DrawTitle(PdfGraphics g, CertificateInfo info, float w, float y) + private float DrawTitle(PdfGraphics g, CertificateInfo info, float w, float y, bool showNatixis) { g.DrawString($"Scheda Prodotto {info.Isin}", PdfTheme.SectionTitleFont, @@ -83,10 +83,11 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer // Solo box Tipologia, niente Data/Bid/Ask const float boxH = 28f; - if (!string.IsNullOrEmpty(info.Categoria)) + string tipologia = showNatixis ? info.Nome : info.Categoria; + if (!string.IsNullOrEmpty(tipologia)) { DrawInfoBox(g, 0, y, w, boxH, - "TIPOLOGIA", info.Categoria, + "TIPOLOGIA", tipologia, PdfTheme.BoxLightBlueBgBrush, PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueBrush, PdfTheme.AccentBlueDarkBrush, PdfTheme.Bold); @@ -208,7 +209,7 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer ("Importo Cedola (p.a.)", info.NominalAnnualYield), ("Frequenza Cedola", info.FrequenzaCedole), ("Valore Nominale", info.NominalValue?.ToString("N0") ?? string.Empty), - ("Memoria Cedola", info.Memory), + ("Memoria", info.Memory), ("Tipo Barriera", info.BarrierType), ("Barriera Capitale", info.LivelloBarriera), ("Rimborso Capitale", info.CapitalValue),