From 8c99664a860b4aeef74c2311121134e8f01a69e2 Mon Sep 17 00:00:00 2001
From: Philip Reetz
Date: Wed, 25 Jan 2006 07:28:03 +0000
Subject: [PATCH] Rabatt wurde fehlerhaft uebernommen beim Umwandeln von
Angebot in Auftrag. Fixes Bug#270
---
bin/mozilla/oe.pl | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl
index e05d0130a..b16352fd6 100644
--- a/bin/mozilla/oe.pl
+++ b/bin/mozilla/oe.pl
@@ -231,9 +231,10 @@ sub prepare_order {
}
for my $i (1 .. $form->{rowcount}) {
- $form->{"discount_$i"} =
- $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);
-
+ if ($form->{id}) {
+ $form->{"discount_$i"} =
+ $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100);
+ }
($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/);
$dec = length $dec;
$decimalplaces = ($dec > 2) ? $dec : 2;
--
2.20.1