diff --git a/ReportImp/DiakonischesWerkMuelheimTwg/Export/DatevExporter.cs b/ReportImp/DiakonischesWerkMuelheimTwg/Export/DatevExporter.cs index f55d05e21..db9a10070 100644 --- a/ReportImp/DiakonischesWerkMuelheimTwg/Export/DatevExporter.cs +++ b/ReportImp/DiakonischesWerkMuelheimTwg/Export/DatevExporter.cs @@ -153,7 +153,7 @@ ib.Oid inner join invoicebase ib on ib.costbearer2supportconceptoid = c2s.oid inner join serviceinvoice si on si.invoicebaseoid = ib.oid inner join serviceinvoiceperiod sip on sip.serviceinvoiceoid = si.oid -WHERE ib.`AccountingPeriodEnd` >= ':Monat_Start' AND ib.`AccountingPeriodEnd` < ':Monat_End' and ib.IsActive = 1 +WHERE ib.`AccountingPeriodEnd` >= ':Monat_Start' AND ib.`AccountingPeriodEnd` < ':Monat_End' and ib.IsActive = 1 AND ib.IsExported = 0 order by ib.invoicenumber ";