From: Sven Schöling Date: Mon, 9 Jan 2012 13:01:34 +0000 (+0100) Subject: Kundenrabatte bei select_item/item_selected beachten X-Git-Tag: release-2.7.0beta1~90 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=676c7dc01537ec05fb64882618ad8c5b08bd5fe6;p=kivitendo-erp.git Kundenrabatte bei select_item/item_selected beachten Fix zu Bug 1762. --- 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->{$_}) }