X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b56d9999d5b0be050f66feab190bc765e8ef46ea..ed7a0c4a20b1b6b55540c28fbb9bf2010a47be76:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 5a6484505..64afc530a 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -397,7 +397,7 @@ sub invoice_details { push(@{ $form->{TEMPLATE_ARRAYS}->{taxnumber} }, $form->{"${item}_taxnumber"}); my $tax_obj = SL::DB::Manager::Tax->find_by(taxnumber => $form->{"${item}_taxnumber"}); - my $description = $tax_obj->translated_attribute('taxdescription', $form->{language_id}, 0) if $tax_obj; + my $description = $tax_obj ? $tax_obj->translated_attribute('taxdescription', $form->{language_id}, 0) : ''; push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $description . q{ } . 100 * $form->{"${item}_rate"} . q{%}); }