X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Foe.pl;h=43b360f5317d21a11091a02e03b75f34ca557ae2;hb=6607a7145fc56b322e1c24afd07f72f085a25465;hp=c14cc85abf4100a082e2c3efe2215450f536c4c1;hpb=82574e78712d71f2012bf6257b2740e2732f66cf;p=kivitendo-erp.git diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index c14cc85ab..43b360f53 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -205,6 +205,7 @@ sub order_links { $form->{jsscript} = 1; my $editing = $form->{id}; + $form->backup_vars(qw(payment_id language_id taxzone_id salesman_id taxincluded cp_id intnotes)); OE->retrieve(\%myconfig, \%$form); @@ -217,7 +218,6 @@ sub order_links { $form->{"$form->{vc}_id"} ||= $form->{"all_$form->{vc}"}->[0]->{id} if $form->{"all_$form->{vc}"}; - $form->backup_vars(qw(payment_id language_id taxzone_id salesman_id taxincluded cp_id intnotes)); $form->{shipto} = 1 if $form->{id}; # get customer / vendor @@ -505,8 +505,12 @@ sub update { } my $rows = scalar @{ $form->{item_list} }; + # hier ist das problem fuer bug 817 $form->{discount} wird nicht durchgeschliffen - $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100); + # ferner fallunterscheidung fuer verkauf oder einkauf s.a. bug 736 jb 04.05.2009 + # select discount as vendor_discount from vendor || + # select discount as customer_discount from customer + $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"$form->{vc}_discount"} * 100); if ($rows) { $form->{"qty_$i"} = 1 unless ($form->{"qty_$i"});