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 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 11:04:43 +01:00
parent 14d4baa629
commit 49014c1544
2 changed files with 5 additions and 7 deletions

View File

@@ -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
{

View File

@@ -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),
};