]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/do.pl
------------------------------------------------------------------------
[kivitendo-erp.git] / bin / mozilla / do.pl
index 9cc026ccf7d076909c943be4d48725a18f5e22e6..370411d7d4b8702bb515649be5d12e20d6d3b647 100644 (file)
@@ -648,6 +648,8 @@ sub invoice {
   check_do_access();
   $auth->assert($form->{type} eq 'purchase_delivery_order' ? 'vendor_invoice_edit' : 'invoice_edit');
 
+  $form->{close_do_ids} = $form->{id};
+
   $form->{deliverydate} = $form->{transdate};
   $form->{transdate}    = $form->{invdate} = $form->current_date(\%myconfig);
   $form->{duedate}      = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);
@@ -740,6 +742,7 @@ sub invoice_multi {
                               'back_button' => 1);
   }
 
+  $form->{close_do_ids}    = join ' ', @do_ids;
   $form->{deliverydate}    = $form->{transdate};
   $form->{transdate}       = $form->current_date(\%myconfig);
   $form->{duedate}         = $form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1);