From 190b6dbb8c7cfe346701d89081121c244cc44b4a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 13 Feb 2007 09:29:37 +0000 Subject: [PATCH] Emailversand: Anhangnamen auch bei Gutschriften vorbelegen. --- bin/mozilla/io.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 9a1e3ab72..ba008c249 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1329,7 +1329,7 @@ sub e_mail { 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"; -- 2.20.1