Revision e90048c8
Von Bernd Bleßmann vor etwa 11 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
43 | 43 |
use SL::DB::Order; |
44 | 44 |
use SL::DB::PeriodicInvoicesConfig; |
45 | 45 |
use SL::DB::Status; |
46 |
use SL::DB::Tax; |
|
46 | 47 |
use SL::DBUtils; |
47 | 48 |
use SL::IC; |
48 | 49 |
|
... | ... | |
1284 | 1285 |
push(@{ $form->{TEMPLATE_ARRAYS}->{tax_nofmt} }, $taxamount); |
1285 | 1286 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxrate} }, $form->format_amount($myconfig, $form->{"${item}_rate"} * 100)); |
1286 | 1287 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxrate_nofmt} }, $form->{"${item}_rate"} * 100); |
1287 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $form->{"${item}_description"} . q{ } . 100 * $form->{"${item}_rate"} . q{%}); |
|
1288 | 1288 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxnumber} }, $form->{"${item}_taxnumber"}); |
1289 |
|
|
1290 |
my $tax_obj = SL::DB::Manager::Tax->find_by(taxnumber => $form->{"${item}_taxnumber"}); |
|
1291 |
my $description = $tax_obj->translated_attribute('taxdescription', $form->{language_id}, 0) if $tax_obj; |
|
1292 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $description . q{ } . 100 * $form->{"${item}_rate"} . q{%}); |
|
1289 | 1293 |
} |
1290 | 1294 |
|
1291 | 1295 |
$form->{nodiscount_subtotal} = $form->format_amount($myconfig, $form->{nodiscount_total}, 2); |
Auch abrufbar als: Unified diff
Steuernamen übersetztbar gemacht.