From 676c7dc01537ec05fb64882618ad8c5b08bd5fe6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 9 Jan 2012 14:01:34 +0100 Subject: [PATCH] Kundenrabatte bei select_item/item_selected beachten Fix zu Bug 1762. --- bin/mozilla/io.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index b42ddde8f..f73c17974 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -543,6 +543,11 @@ sub item_selected { $form->{"sellprice_$i"} = $form->round_amount($form->{"sellprice_$i"}, $decimalplaces); } + + # tradediscount + if ($::form->{tradediscount}) { + $::form->{"sellprice_$i"} *= 1 - $::form->{tradediscount}; + } } map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) } -- 2.20.1