From bdea20c845ae8c57a6192826f8db5ece112eadb2 Mon Sep 17 00:00:00 2001 From: Alex <77341673+defectiveAi@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:12:00 +0200 Subject: [PATCH] fix: Keep column in file, but without content. --- .../Generators/MonthlyAmountTotalFileGenerator.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/settlement-report/SettlementReports.Infrastructure/SettlementReports_v2/Generators/MonthlyAmountTotalFileGenerator.cs b/source/settlement-report/SettlementReports.Infrastructure/SettlementReports_v2/Generators/MonthlyAmountTotalFileGenerator.cs index 3e5b4a2..a2b68cf 100644 --- a/source/settlement-report/SettlementReports.Infrastructure/SettlementReports_v2/Generators/MonthlyAmountTotalFileGenerator.cs +++ b/source/settlement-report/SettlementReports.Infrastructure/SettlementReports_v2/Generators/MonthlyAmountTotalFileGenerator.cs @@ -124,12 +124,12 @@ public SettlementReportTotalMonthlyAmountRowMap(SettlementReportRequestedByActor .Name("CHARGEID") .Index(10); - if (actorInfo.MarketRole is not MarketRole.SystemOperator) - { - Map(r => r.ChargeOwnerId) - .Name("CHARGEOWNER") - .Index(11); - } + Map(r => r.ChargeOwnerId) + .Name("CHARGEOWNER") + .Index(11) + .Convert(row => actorInfo.MarketRole is not MarketRole.SystemOperator + ? row.Value.ChargeOwnerId + : string.Empty); } } }