Emailversand: Anhangnamen auch bei Gutschriften vorbelegen.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 13 Feb 2007 09:29:37 +0000 (09:29 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 13 Feb 2007 09:29:37 +0000 (09:29 +0000)
bin/mozilla/io.pl

index 9a1e3ab..ba008c2 100644 (file)
@@ -1329,7 +1329,7 @@ sub e_mail {
   my $attachment_filename = $formname_translations{$form->{"formname"}};
   my $prefix;
 
   my $attachment_filename = $formname_translations{$form->{"formname"}};
   my $prefix;
 
-  if ($form->{"type"} =~ /invoice/) {
+  if (grep({ $form->{"type"} eq $_ } qw(invoice credit_note))) {
     $prefix = "inv";
   } elsif ($form->{"type"} =~ /_quotation$/) {
     $prefix = "quo";
     $prefix = "inv";
   } elsif ($form->{"type"} =~ /_quotation$/) {
     $prefix = "quo";