From 82103daab29f2075f45e6cf8f7dc3658f8411e8b Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 11 Jul 2023 11:10:08 +0200 Subject: [PATCH] =?UTF-8?q?EvVereinF=C3=BCrWohnraumhilfe/Invoicing/Collect?= =?UTF-8?q?iveInvoiceCreation.cs=20abgelaufene=20HPs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Invoicing/CollectiveInvoiceCreation.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ReportImp/EvVereinFürWohnraumhilfe/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/EvVereinFürWohnraumhilfe/Invoicing/CollectiveInvoiceCreation.cs index b9bc2eaeb..44fd2c479 100644 --- a/ReportImp/EvVereinFürWohnraumhilfe/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/EvVereinFürWohnraumhilfe/Invoicing/CollectiveInvoiceCreation.cs @@ -280,8 +280,16 @@ namespace EvVereinF } if (sip.Notice == null && (aktuell1 || aktuell2 || aktuell3 || aktuell4 || aktuell5)) { - sip.InvoiceItemList[0].AmountTotal += cor; - sip.InvoiceItemList[0].GrossAmountTotal += cor; + if (sipSc.EndDate < invoicePeriod.StartDate) // Korrekturen an abgelaufenen HPs + { + sip.InvoiceItemList[0].AmountTotal = cor; + sip.InvoiceItemList[0].GrossAmountTotal = cor; + } + else + { + sip.InvoiceItemList[0].AmountTotal += cor; + sip.InvoiceItemList[0].GrossAmountTotal += cor; + } sip.Notice = String.Format("{0:0.00}", cor); sip.InvoiceItemList[0].UnitDescription = leistung; }