Vorbereitung für Drucken und Buchen
authorfreiphone <kontakt@frei-phone.de>
Mon, 5 Jun 2017 08:41:17 +0000 (10:41 +0200)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2017 08:41:17 +0000 (10:41 +0200)
templates/webpages/is/form_header.html

index 66367ef..133ff7d 100644 (file)
 [% IF resubmit && is_format_html %]
        window.open('about:blank','Beleg');
        document.invoice.target = 'Beleg';
-       $('#action_print').click();
+       kivi.SalesPurchase.show_print_dialog();
+       kivi.SalesPurchase.print_record();
 [% ELSIF resubmit %]
-       $('#action_print').click();
+       kivi.SalesPurchase.show_print_dialog();
+       kivi.SalesPurchase.print_record();
 [% ELSIF creditwarning != '' %]
        alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
 [% ELSE %]