]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/io.pl
E-Mail-Versand: CC: kivi-Benutzer sortieren
[mfinanz.git] / bin / mozilla / io.pl
index 917720c9d21717ff32f1374a92e0201e4ee9cbb3..1ce4c18a2bbe1ba96ca04d466a24fdbe9c0ac89f 100644 (file)
@@ -1392,6 +1392,8 @@ sub print_form {
     $form->get_shipto(\%myconfig);
   }
 
+  $form->set_addition_billing_address_print_variables;
+
   $form->{notes} =~ s/^\s+//g;
 
   delete $form->{printer_command};
@@ -2111,7 +2113,8 @@ sub show_sales_purchase_email_dialog {
     $body_params{fallback_translation_type} = "preset_text_invoice";
   }
 
-  $::form->{all_employees} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
+  $::form->{all_employees} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]);
+
   my $email_form = {
     to                  => $email,
     cc                  => $email_cc,
@@ -2123,10 +2126,10 @@ sub show_sales_purchase_email_dialog {
 
   my %files = _get_files_for_email_dialog();
   my $html  = $::form->parse_html_template("common/_send_email_dialog", {
-    email_form  => $email_form,
-    show_bcc    => $::auth->assert('email_bcc', 'may fail'),
-    FILES       => \%files,
-    is_customer => $::form->{vc} eq 'customer',
+    email_form      => $email_form,
+    show_bcc        => $::auth->assert('email_bcc', 'may fail'),
+    FILES           => \%files,
+    is_customer     => $::form->{vc} eq 'customer',
     is_invoice_mail => ($record_email && $::form->{type} eq 'invoice'),
     ALL_EMPLOYEES   => $::form->{all_employees},
   });