Rechnungen: resubmit dispatching gefixt
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 2 Jun 2016 09:30:21 +0000 (11:30 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 2 Jun 2016 09:30:21 +0000 (11:30 +0200)
templates/webpages/is/form_footer.html
templates/webpages/is/form_header.html

index 7980bca..3f06db6 100644 (file)
   [% IF id %]
     <input class="submit" type="submit" accesskey="u" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
     <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
-    <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
+    <input class="submit" type="submit" name="action_print" id="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
     <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
 [% IF  show_storno %]
     [% L.submit_tag("action_storno", LxERP.t8("Storno"), "data-require-transaction-description"=INSTANCE_CONF.get_require_transaction_description_ps, confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
index f9a8879..ef60cc9 100644 (file)
 [% IF resubmit && is_format_html %]
        window.open('about:blank','Beleg');
        document.invoice.target = 'Beleg';
-       document.invoice.submit();
+       $('#action_print').click();
 [% ELSIF resubmit %]
-       document.invoice.submit();
+       $('#action_print').click();
 [% ELSIF creditwarning != '' %]
        alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
 [% ELSE %]