]> wagnertech.de Git - mfinanz.git/blobdiff - SL/IS.pm
Beim Umwandeln von Aufträgen in Rechnungen nicht sofort den Auftrag schließen. Beim...
[mfinanz.git] / SL / IS.pm
index c4e2a7fbd04526846b4ed2070d1cf171120fa4aa..bf52d5223d26217c80d92cfd74b5d04f55b15c3e 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -37,6 +37,7 @@ package IS;
 use List::Util qw(max);
 
 use SL::AM;
+use SL::ARAP;
 use SL::CVar;
 use SL::Common;
 use SL::DBUtils;
@@ -994,6 +995,11 @@ sub post_invoice {
                               'to_id'      => $form->{id},
       );
   }
+  delete $form->{convert_from_do_ids};
+
+  ARAP->close_orders_if_billed('dbh'     => $dbh,
+                               'arap_id' => $form->{id},
+                               'table'   => 'ar',);
 
   my $rc = 1;
   if (!$provided_dbh) {