X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FIS.pm;h=64afc530a1abc7c4043bfcc2c2b90a217498f648;hb=9c1e389807fe1e1fbadbcffcdd3332b841fc9035;hp=5a6484505c7f60f0345136a035e192cef3106a18;hpb=766f5705ecb9cd56adfbffd94c871959bb64c6fd;p=kivitendo-erp.git 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{%}); }