X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6b23fb212fb1cee6e1034601d3ceb22a182e50f0..7cd6d451d97d1f1e7f3c0f9db2de03735dc8c8f0:/SL/ARAP.pm 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',