]> wagnertech.de Git - mfinanz.git/blobdiff - SL/IR.pm
Keine Umlaute direkt eingeben, damit auch hinterher UTF-8 herauskommt.
[mfinanz.git] / SL / IR.pm
index f1c9197ee0d30696144d99ad38b793f715344203..936cc98fedea0c3eaed86ceca0fb8aeaf292bdd6 100644 (file)
--- a/SL/IR.pm
+++ b/SL/IR.pm
@@ -35,6 +35,7 @@
 package IR;
 
 use SL::AM;
+use SL::ARAP;
 use SL::Common;
 use SL::DBUtils;
 use SL::DO;
@@ -562,6 +563,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'   => 'ap',);
 
   my $rc = 1;
   if (!$provided_dbh) {