From cc63261c996079334c6a129d9b53d8f4a6a1e8cb Mon Sep 17 00:00:00 2001
From: Philip Reetz
Date: Mon, 16 Jan 2006 13:48:01 +0000
Subject: [PATCH] Druckvorschau, Drucken und Drucken+Buchen ueberarbeitet,
Fehler bei der HTML-Vorschau beseitigt
---
bin/mozilla/io.pl | 76 ++++++++++++++++++++++-------------------------
bin/mozilla/is.pl | 19 +++++++-----
bin/mozilla/oe.pl | 2 +-
3 files changed, 48 insertions(+), 49 deletions(-)
diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl
index dcdaa3617..31322f088 100644
--- a/bin/mozilla/io.pl
+++ b/bin/mozilla/io.pl
@@ -771,39 +771,39 @@ sub display_form {
&{"$form->{display_form}"};
exit;
}
- if ( $form->{print_and_post}
- && $form->{second_run}
- && ($form->{action} eq "display_form")) {
- for (keys %$form) { $old_form->{$_} = $form->{$_} }
- $old_form->{rowcount}++;
-
- #$form->{rowcount}--;
- #$form->{rowcount}--;
-
- $form->{print_and_post} = 0;
-
- &print_form($old_form);
- exit;
- }
-
- $form->{action} = "";
- $form->{resubmit} = 0;
-
- if ($form->{print_and_post} && !$form->{second_run}) {
- $form->{second_run} = 1;
- $form->{action} = "display_form";
- $form->{rowcount}--;
- my $rowcount = $form->{rowcount};
-
- # get pricegroups for parts
- IS->get_pricegroups_for_parts(\%myconfig, \%$form);
-
- # build up html code for prices_$i
- set_pricegroup($rowcount);
-
- $form->{resubmit} = 1;
-
- }
+# if ( $form->{print_and_post}
+# && $form->{second_run}
+# && ($form->{action} eq "display_form")) {
+# for (keys %$form) { $old_form->{$_} = $form->{$_} }
+# $old_form->{rowcount}++;
+#
+# #$form->{rowcount}--;
+# #$form->{rowcount}--;
+#
+# $form->{print_and_post} = 0;
+#
+# &print_form($old_form);
+# exit;
+# }
+#
+# $form->{action} = "";
+# $form->{resubmit} = 0;
+#
+# if ($form->{print_and_post} && !$form->{second_run}) {
+# $form->{second_run} = 1;
+# $form->{action} = "display_form";
+# $form->{rowcount}--;
+# my $rowcount = $form->{rowcount};
+#
+# # get pricegroups for parts
+# IS->get_pricegroups_for_parts(\%myconfig, \%$form);
+#
+# # build up html code for prices_$i
+# set_pricegroup($rowcount);
+#
+# $form->{resubmit} = 1;
+#
+# }
&form_header;
$numrows = ++$form->{rowcount};
@@ -1261,10 +1261,10 @@ sub print_options {
$form->{copies} = 3 unless $form->{copies};
$form->{PD}{ $form->{formname} } = "selected";
- $form->{DF}{ $form->{format} } = "";
+ $form->{DF}{ $form->{format} } = "selected";
$form->{OP}{ $form->{media} } = "selected";
$form->{SM}{ $form->{sendmode} } = "selected";
-
+ print(STDERR $form->{format} , " Format\n");
if ($form->{type} eq 'purchase_order') {
$type = qq|