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) if (isExpired)
{ {
// Certificati non in quotazione: senza Ex Date e Record, // Certificati non in quotazione: senza Ex Date e Record,
// rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Soglia Rimborso, // rinominati Trigger Cedola→Barriera Cedola e Trigger Autocall→Soglia Rimborso
// aggiunte Barriera Capitale e Rimborso Capitale
headers = new[] headers = new[]
{ {
"Osservazione", "Pagamento", "Osservazione", "Pagamento",
"Barriera Cedola", "Cedola %", "Pagato", "Memoria", "Barriera Cedola", "Cedola %", "Pagato", "Memoria",
"Importo Pagato", "Soglia Rimborso", "Valore Autocall", "Importo Pagato", "Soglia Rimborso", "Valore Autocall"
"Barriera Capitale", "Rimborso Capitale"
}; };
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; paidColIndex = 4;
} }
else else
@@ -102,8 +100,6 @@ public class EventiSectionRenderer : IPdfSectionRenderer
row.Cells[6].Value = evt.AmountPaid; row.Cells[6].Value = evt.AmountPaid;
row.Cells[7].Value = evt.AutocallTrigger; row.Cells[7].Value = evt.AutocallTrigger;
row.Cells[8].Value = evt.AutocallValue; row.Cells[8].Value = evt.AutocallValue;
row.Cells[9].Value = evt.CapitalTrigger;
row.Cells[10].Value = evt.CapitalValue;
} }
else else
{ {

View File

@@ -210,6 +210,8 @@ public class ExpiredAnagraficaSectionRenderer : IPdfSectionRenderer
("Valore Nominale", info.NominalValue?.ToString("N0") ?? string.Empty), ("Valore Nominale", info.NominalValue?.ToString("N0") ?? string.Empty),
("Memoria Cedola", info.Memory), ("Memoria Cedola", info.Memory),
("Tipo Barriera", info.BarrierType), ("Tipo Barriera", info.BarrierType),
("Barriera Capitale", info.LivelloBarriera),
("Rimborso Capitale", info.CapitalValue),
("Tipo Basket", info.BasketType), ("Tipo Basket", info.BasketType),
("Rendimento Totale", info.RendimentoTotale), ("Rendimento Totale", info.RendimentoTotale),
}; };