From ecc629cc4524aeacd82c4aa5674905c791543c5f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 29 Dec 2010 10:56:59 +0100 Subject: [PATCH 1/1] =?utf8?q?=20Bugfix=201412:=20Wenn=20die=20Ware=20ausg?= =?utf8?q?ew=C3=A4hlt=20werden=20muss=20wird=20der=20Rabatt=20verworfen=20?= =?utf8?q?=20Falls=20kein=20Kundenrabatt=20vorhanden=20ist,=20den=20aktuel?= =?utf8?q?len=20Rabatt=20nicht=20mit=200%=20=C3=BCberschreiben,=20=20da=20?= =?utf8?q?hier=20der=20Anwender=20schon=20manual=20einen=20Wert=20eingetra?= =?utf8?q?gen=20haben=20k=C3=B6nnte=20(analog=20zu=20qty).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/is.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index b38cfd1d5..b5e0927fe 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -513,7 +513,11 @@ sub update { my $rows = scalar @{ $form->{item_list} }; - $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100); + # Falls kein Kundenrabatt vorhanden ist, den aktuellen Rabatt nicht mit 0% überschreiben, + # da hier der Anwender schon manual einen Wert eingetragen haben könnte (analog zu qty) Bugfix: 1412 + if ($form->{customer_discount}){ + $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100); + } if ($rows) { $form->{"qty_$i"} = ($form->{"qty_$i"} * 1) ? $form->{"qty_$i"} : 1; -- 2.20.1