]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/oe.pl
Diverse Bugfixes im DATEV-Export
[mfinanz.git] / bin / mozilla / oe.pl
index c14cc85abf4100a082e2c3efe2215450f536c4c1..c86de3763fcce8aa3895778c7a89ab3cc40b9f68 100644 (file)
@@ -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"});