From 66df14c3e6c8c0290c8d44b4af20d090ea0d1b02 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 6 May 2025 16:00:50 +0200 Subject: [PATCH] =?UTF-8?q?BeWoDellbrueck/SettlementReport2.cs=20-=20Erg?= =?UTF-8?q?=C3=A4nzung=20FLS=20in=20ItemDescription?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReportImp/BeWoDellbrueck/SettlementReport2.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ReportImp/BeWoDellbrueck/SettlementReport2.cs b/ReportImp/BeWoDellbrueck/SettlementReport2.cs index 5f3d44dff..1941eabe0 100644 --- a/ReportImp/BeWoDellbrueck/SettlementReport2.cs +++ b/ReportImp/BeWoDellbrueck/SettlementReport2.cs @@ -5,6 +5,7 @@ using System.ComponentModel; using DevExpress.XtraReports.UI; using BeWo.Report.ReportObjects; using BeWo.Report; +using BS.Shared.Extensions; namespace BeWoDellbrueck { @@ -33,13 +34,21 @@ namespace BeWoDellbrueck } pRO.RateFactor = (double)rateFactor; - if (pRO.RecipientOrganisation.Contains("(Assistenz")) + if (pRO.InvoiceItems != null && pRO.InvoiceItems.Count > 0) { foreach (var ii in pRO.InvoiceItems) { - ii.DetailDescription = ii.DetailDescription.Replace("FLS", "Std."); + if (ii.ItemDescription.IsNullOrEmpty()) + { + ii.DetailDescription = "FLS" + ii.DetailDescription; + if (pRO.RecipientOrganisation.Contains("(Assistenz")) + { + ii.DetailDescription = ii.DetailDescription.Replace("FLS", "Std."); + } + } } } + if (!pRO.RecipientOrganisation.Contains("LVR")) { lblGP.Visible = false;