Revision 3908afda
Von Bernd Bleßmann vor 5 Monaten hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
353 | 353 |
} |
354 | 354 |
|
355 | 355 |
my @warnings = store_pdf_to_webdav_and_filemanagement( |
356 |
$self->order, $pdf, $pdf_filename |
|
356 |
$self->order, $pdf, $pdf_filename, $formname
|
|
357 | 357 |
); |
358 | 358 |
if (scalar @warnings) { |
359 | 359 |
flash_later('warning', $_) for @warnings; |
... | ... | |
517 | 517 |
} |
518 | 518 |
|
519 | 519 |
my @warnings = store_pdf_to_webdav_and_filemanagement( |
520 |
$self->order, $pdf, $::form->{attachment_filename} |
|
520 |
$self->order, $pdf, $::form->{attachment_filename}, $::form->{formname}
|
|
521 | 521 |
); |
522 | 522 |
if (scalar @warnings) { |
523 | 523 |
flash_later('warning', $_) for @warnings; |
... | ... | |
2313 | 2313 |
} |
2314 | 2314 |
|
2315 | 2315 |
sub store_pdf_to_webdav_and_filemanagement { |
2316 |
my($order, $content, $filename) = @_; |
|
2316 |
my($order, $content, $filename, $variant) = @_;
|
|
2317 | 2317 |
|
2318 | 2318 |
my @errors; |
2319 | 2319 |
|
... | ... | |
2342 | 2342 |
source => 'created', |
2343 | 2343 |
file_type => 'document', |
2344 | 2344 |
file_name => $filename, |
2345 |
file_contents => $content); |
|
2345 |
file_contents => $content, |
|
2346 |
print_variant => $variant); |
|
2346 | 2347 |
1; |
2347 | 2348 |
} or do { |
2348 | 2349 |
push @errors, t8('Storing PDF in storage backend failed: #1', $@); |
Auch abrufbar als: Unified diff
Lieferschein-Controller: DMS: Druck-Variante berücksichtigen
siehe auch: ce06f68492a003aa81e3b00fe9fb58618bdb5263
"Auftrags-Controller: … "
Behebt #700 (redmine).