Revision ed7a0c4a
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
1352 | 1352 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxnumber} }, $form->{"${item}_taxnumber"}); |
1353 | 1353 |
|
1354 | 1354 |
my $tax_obj = SL::DB::Manager::Tax->find_by(taxnumber => $form->{"${item}_taxnumber"}); |
1355 |
my $description = $tax_obj->translated_attribute('taxdescription', $form->{language_id}, 0) if $tax_obj;
|
|
1355 |
my $description = $tax_obj ? $tax_obj->translated_attribute('taxdescription', $form->{language_id}, 0) : '';
|
|
1356 | 1356 |
push(@{ $form->{TEMPLATE_ARRAYS}->{taxdescription} }, $description . q{ } . 100 * $form->{"${item}_rate"} . q{%}); |
1357 | 1357 |
} |
1358 | 1358 |
|
Auch abrufbar als: Unified diff
Mal wieder ein paar lexicals in post if.