<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>
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 %]