projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rechnungsmaske: "Drucken und Buchen" und Browser-Zurück entschärfen
[kivitendo-erp.git]
/
templates
/
webpages
/
is
/
form_header.html
diff --git
a/templates/webpages/is/form_header.html
b/templates/webpages/is/form_header.html
index
ec575dd
..
b155850
100644
(file)
--- a/
templates/webpages/is/form_header.html
+++ b/
templates/webpages/is/form_header.html
@@
-18,6
+18,7
@@
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
+<input type="hidden" name="already_printed_flag" id="already_printed_flag" value="0">
<h1>[% title %]</h1>
<h1>[% title %]</h1>
@@
-331,8
+332,11
@@
kivi.SalesPurchase.show_print_dialog();
kivi.SalesPurchase.print_record();
[% ELSIF resubmit %]
kivi.SalesPurchase.show_print_dialog();
kivi.SalesPurchase.print_record();
[% ELSIF resubmit %]
- kivi.SalesPurchase.show_print_dialog();
- kivi.SalesPurchase.print_record();
+ if ($('#already_printed_flag').val() === "0") {
+ kivi.SalesPurchase.show_print_dialog();
+ kivi.SalesPurchase.print_record();
+ $('#already_printed_flag').val("1");
+ }
[% ELSIF creditwarning != '' %]
alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
[% ELSE %]
[% ELSIF creditwarning != '' %]
alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
[% ELSE %]