X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/073b5829989e57f938b94c751fc7008f762bd8e5..e90048c8180f32f52f3f12ee52eb7269c4b27fcf:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 683bb0e7c..12cbb8aa1 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -43,6 +43,7 @@ use SL::CVar; use SL::DB::Order; use SL::DB::PeriodicInvoicesConfig; use SL::DB::Status; +use SL::DB::Tax; use SL::DBUtils; use SL::IC; @@ -1284,8 +1285,11 @@ sub order_details { push(@{ $form->{TEMPLATE_ARRAYS}->{tax_nofmt} }, $taxamount); push(@{ $form->{TEMPLATE_ARRAYS}->{taxrate} }, $form->format_amount($myconfig, $form->{"${item}_rate"} * 100)); push(@{ $form->{TEMPLATE_ARRAYS}->{taxrate_nofmt} }, $form->{"${item}_rate"} * 100); - push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $form->{"${item}_description"} . q{ } . 100 * $form->{"${item}_rate"} . q{%}); 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; + push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $description . q{ } . 100 * $form->{"${item}_rate"} . q{%}); } $form->{nodiscount_subtotal} = $form->format_amount($myconfig, $form->{nodiscount_total}, 2);