From 49014c1544f644b524ca44ecfb867595f582fd92 Mon Sep 17 00:00:00 2001 From: SmartRootsSrl Date: Mon, 23 Mar 2026 11:04:43 +0100 Subject: [PATCH] feat: move Barriera/Rimborso Capitale from eventi table to anagrafica analisi Expired certificate report: removed 'Barriera Capitale' and 'Rimborso Capitale' columns from the eventi table (9 columns now). Added the same two fields to the Analisi section on page 1, mapped from LivelloBarriera and CapitalValue. Co-Authored-By: Claude Sonnet 4.6 --- .../Services/Implementations/EventiSectionRenderer.cs | 10 +++------- .../ExpiredAnagraficaSectionRenderer.cs | 2 ++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CertReports.Syncfusion/Services/Implementations/EventiSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/EventiSectionRenderer.cs index 8a4aec0..be33b79 100644 --- a/CertReports.Syncfusion/Services/Implementations/EventiSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/EventiSectionRenderer.cs @@ -48,16 +48,14 @@ public class EventiSectionRenderer : IPdfSectionRenderer if (isExpired) { // Certificati non in quotazione: senza Ex Date e Record, - // rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Soglia Rimborso, - // aggiunte Barriera Capitale e Rimborso Capitale + // rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Soglia Rimborso headers = new[] { "Osservazione", "Pagamento", "Barriera Cedola", "Cedola %", "Pagato", "Memoria", - "Importo Pagato", "Soglia Rimborso", "Valore Autocall", - "Barriera Capitale", "Rimborso Capitale" + "Importo Pagato", "Soglia Rimborso", "Valore Autocall" }; - cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52, 58, 58 }; + cw = new float[] { 62, 58, 52, 46, 36, 46, 52, 58, 52 }; paidColIndex = 4; } else @@ -102,8 +100,6 @@ public class EventiSectionRenderer : IPdfSectionRenderer row.Cells[6].Value = evt.AmountPaid; row.Cells[7].Value = evt.AutocallTrigger; row.Cells[8].Value = evt.AutocallValue; - row.Cells[9].Value = evt.CapitalTrigger; - row.Cells[10].Value = evt.CapitalValue; } else { diff --git a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs index 06076c1..3205274 100644 --- a/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs +++ b/CertReports.Syncfusion/Services/Implementations/ExpiredAnagraficaSectionRenderer.cs @@ -210,6 +210,8 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer ("Valore Nominale", info.NominalValue?.ToString("N0") ?? string.Empty), ("Memoria Cedola", info.Memory), ("Tipo Barriera", info.BarrierType), + ("Barriera Capitale", info.LivelloBarriera), + ("Rimborso Capitale", info.CapitalValue), ("Tipo Basket", info.BasketType), ("Rendimento Totale", info.RendimentoTotale), };