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