Revision c4ad2c7c
Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
460 | 460 |
if ($form->{resubmit} && ($form->{format} eq "html")) { |
461 | 461 |
$dispatch_to_popup = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; |
462 | 462 |
$dispatch_to_popup .= "document.do.submit();"; |
463 |
} elsif ($form->{resubmit}) { |
|
463 |
} elsif ($form->{resubmit} && $form->{action_print}) {
|
|
464 | 464 |
# emulate click for resubmitting actions |
465 |
$dispatch_to_popup = "document.do.${_}.click(); " for grep { /^action_/ } keys %$form;
|
|
465 |
$dispatch_to_popup = "kivi.SalesPurchase.show_print_dialog(); kivi.SalesPurchase.print_record();";
|
|
466 | 466 |
} |
467 | 467 |
$::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup});"); |
468 | 468 |
|
Auch abrufbar als: Unified diff
Lieferschein: direktes, erstmaliges Drucken gefixt
Behebt #469 (redmine)