Revision 9ec05722
Von Bernd Bleßmann vor fast 7 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
152 | 152 |
my $language; |
153 | 153 |
$language = SL::DB::Language->new(id => $::form->{print_options}->{language_id})->load if $::form->{print_options}->{language_id}; |
154 | 154 |
|
155 |
# create a form for generate_attachment_filename |
|
155 | 156 |
my $form = Form->new; |
156 | 157 |
$form->{ordnumber} = $self->order->ordnumber; |
157 | 158 |
$form->{type} = $self->type; |
... | ... | |
1198 | 1199 |
$print_form->{media} = $params->{media} || 'file'; |
1199 | 1200 |
$print_form->{groupitems} = $params->{groupitems}; |
1200 | 1201 |
$print_form->{media} = 'file' if $print_form->{media} eq 'screen'; |
1201 |
$print_form->{language} = $params->{language}->template_code if $print_form->{language}; |
|
1202 |
$print_form->{language_id} = $params->{language}->id if $print_form->{language}; |
|
1203 | 1202 |
|
1203 |
$order->language($params->{language}); |
|
1204 | 1204 |
$order->flatten_to_form($print_form, format_amounts => 1); |
1205 | 1205 |
|
1206 | 1206 |
# search for the template |
Auch abrufbar als: Unified diff
Auftrags-Controller: Beim Drucken Sprache richtig berücksichtigen.