From: Bernd Bleßmann Date: Tue, 9 Mar 2021 10:18:08 +0000 (+0100) Subject: Lieferschein: direktes, erstmaliges Drucken gefixt X-Git-Tag: kivitendo-mebil_0.1-0~9^2~454 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4ad2c7c1254adbd69148bc7cb07727b7725b852;p=kivitendo-erp.git Lieferschein: direktes, erstmaliges Drucken gefixt Behebt #469 (redmine) --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 5de295916..fc38c52ad 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -460,9 +460,9 @@ sub form_header { if ($form->{resubmit} && ($form->{format} eq "html")) { $dispatch_to_popup = "window.open('about:blank','Beleg'); document.do.target = 'Beleg';"; $dispatch_to_popup .= "document.do.submit();"; - } elsif ($form->{resubmit}) { + } elsif ($form->{resubmit} && $form->{action_print}) { # emulate click for resubmitting actions - $dispatch_to_popup = "document.do.${_}.click(); " for grep { /^action_/ } keys %$form; + $dispatch_to_popup = "kivi.SalesPurchase.show_print_dialog(); kivi.SalesPurchase.print_record();"; } $::request->{layout}->add_javascripts_inline("\$(function(){$dispatch_to_popup});");