X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/4a9b86a56fa151d2fde072202ccabd5fc1fbaacc..3c1ceacd69653915e0b44f1700b198d96681f546:/bin/mozilla/do.pl diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 9cc026ccf..370411d7d 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -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);