]> wagnertech.de Git - mfinanz.git/commitdiff
Merge pull request #1 from freiphone/patch-1
authorfreiphone <kontakt@frei-phone.de>
Mon, 5 Jun 2017 13:39:35 +0000 (15:39 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2017 13:39:35 +0000 (15:39 +0200)
Vorbereitung für Drucken und Buchen

bin/mozilla/oe.pl
locale/de/all

index 8f4f28ac479f7e71312824acd3051283ae68d402..4c2d05916e409ce6f43d79ce645af418d6a8453f 100644 (file)
@@ -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');");
   }
index f27c0e121dedd0732830103a8d9aa9b2b0b25035..e3457c76b3792828bfab602b6fe9a2ac9eff2145 100755 (executable)
@@ -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',