LebenshilfeBadKreuznachFUD/Invoicing/ Finetuning Format und Wegepauschale

This commit is contained in:
2025-07-16 13:48:47 +02:00
parent 3af572767a
commit 50e8970770
2 changed files with 2 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ namespace LebenshilfeBadKreuznachFUD.Invoicing
{
var list = base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc);
InvoiceItem wg = null;
if (serviceRecordsInPeriod.Any(s => s.ServiceDescription.CategoryName.ToLower().Contains("entlastung")))
if (list.Count > 0 && serviceRecordsInPeriod.Any(s => s.ServiceDescription.CategoryName.ToLower().Contains("entlastung")))
{
wg = CreateHausbesuchspauschale(serviceRecordsInPeriod, invoicePeriod, scap);
if (wg != null)

View File

@@ -69,7 +69,7 @@ namespace LebenshilfeBadKreuznachFUD
{
sb.AppendLine(pRO.RecipientOrganisation);
}
if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1))
if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1) && pRO.RecipientOrganisation.ToLower() != "selbstzahler")
{
sb.AppendLine(pRO.RecipientAddressLine1);
}