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; }