From: freiphone Date: Mon, 5 Jun 2017 13:39:35 +0000 (+0200) Subject: Merge pull request #1 from freiphone/patch-1 X-Git-Tag: release-3.5.4~1048^2~1 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/0399bdb1fcfbb8f7fd1a48771e4fa995037eb4b7?hp=c53991c597f96792f4d6772143c277c789c99ebf Merge pull request #1 from freiphone/patch-1 Vorbereitung für Drucken und Buchen --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 8f4f28ac4..4c2d05916 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -581,9 +581,9 @@ sub form_header { if ($form->{resubmit} && ($form->{format} eq "html")) { $dispatch_to_popup = "window.open('about:blank','Beleg'); document.oe.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.oe.${_}.click(); " for grep { /^action_/ } keys %$form; + $dispatch_to_popup = "kivi.SalesPurchase.show_print_dialog(); kivi.SalesPurchase.print_record();"; } elsif ($creditwarning) { $::request->{layout}->add_javascripts_inline("alert('$credittext');"); } diff --git a/locale/de/all b/locale/de/all index f27c0e121..e3457c76b 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2221,6 +2221,7 @@ $self->{texts} = { 'Pricegroups' => 'Preisgruppen', 'Prices' => 'Preise', 'Print' => 'Drucken', + 'Print and Post' => 'Drucken und Buchen', 'Print automatically' => 'Automatisch ausdrucken', 'Print both sided' => 'Beidseitig ausdrucken', 'Print delivery orders' => 'Drucke Lieferscheine',