X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FARAP.pm;h=1d044eaade50ffc191e660df824a39cab7bf185a;hb=a66cafd980c44371fd29b0383f665125d85b1cc7;hp=121ea065ac40d4acb51a65711a0f6fc31afe017d;hpb=6b23fb212fb1cee6e1034601d3ceb22a182e50f0;p=kivitendo-erp.git diff --git a/SL/ARAP.pm b/SL/ARAP.pm index 121ea065a..1d044eaad 100644 --- a/SL/ARAP.pm +++ b/SL/ARAP.pm @@ -76,6 +76,10 @@ sub close_orders_if_billed { # said order. Again consider both direct conversions and indirect # conversions via delivery orders. foreach my $oe_id (@oe_ids) { + + # Dont close orders with periodic invoice + next if SL::DB::Manager::PeriodicInvoicesConfig->find_by(oe_id => $oe_id); + # Direct conversions "order -> invoice": @links = RecordLinks->get_links('dbh' => $dbh, 'from_table' => 'oe',