From 05fc6cefc7bae541f5a306e7b5e09473d91fa843 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 17 Sep 2009 21:03:14 +0200 Subject: [PATCH] =?utf8?q?Fix=20f=C3=BCr=20Bug=201136.=20Die=20Pr=C3=BCfun?= =?utf8?q?g=20f=C3=BCr=20not=5Fdiscountable=20war=20zu=20fr=C3=BCh.=20Zun?= =?utf8?q?=C3=A4chst=20muss=20form->item->werte=20nach=20form->werte=5Fder?= =?utf8?q?=5Freihe=20gewandelt=20sein?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/oe.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index bac180490..919057c04 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -527,9 +527,13 @@ sub update { } else { $sellprice = $form->parse_amount(\%myconfig, $form->{"sellprice_$i"}); - $form->{"discount_$i"} = 0 if $form->{"not_discountable_$i"}; + # hier werden parts (Artikeleigenschaften) aus item_list (retrieve_item aus IS.pm) + # (item wahrscheinlich synonym für parts) entsprechend in die form geschrieben ... map { $form->{item_list}[$i]{$_} =~ s/\"/"/g } qw(partnumber description unit); map { $form->{"${_}_$i"} = $form->{item_list}[0]{$_} } keys %{ $form->{item_list}[0] }; + + # ... deswegen muss die prüfung, ob es sich um einen nicht rabattierfähigen artikel handelt später erfolgen (Bug 1136) + $form->{"discount_$i"} = 0 if $form->{"not_discountable_$i"}; $form->{payment_id} = $form->{"part_payment_id_$i"} if $form->{"part_payment_id_$i"} ne ""; $form->{"marge_price_factor_$i"} = $form->{item_list}->[0]->{price_factor}; -- 2.20.1