Bei Gutschrift aus VK-Rechnung auch EK-Preis übernehmen
authorG. Richardson <information@lx-office-hosting.de>
Mon, 5 Sep 2011 11:12:26 +0000 (13:12 +0200)
committerG. Richardson <information@lx-office-hosting.de>
Tue, 6 Sep 2011 11:57:18 +0000 (13:57 +0200)
Ansonsten geht lastcost verloren und Ertrag der Gutschrift wird 100%
Dies stört im Rechnungsbericht und Verkaufsbericht

bin/mozilla/io.pl

index 9dd8e8c..37fdda8 100644 (file)
@@ -350,7 +350,7 @@ sub display_row {
                    $marge_color, $locale->text('Ertrag'),$form->{"marge_absolut_$i"}, $form->{"marge_percent_$i"},
                    $locale->text('LP'), $form->format_amount(\%myconfig, $form->{"listprice_$i"}, 2),
                    $locale->text('EK'), $form->format_amount(\%myconfig, $form->{"lastcost_$i"}, 2) }
-      if $form->{"id_$i"} && ($form->{type} =~ /^sales_/ ||  $form->{type} =~ /invoice/) && !$is_delivery_order;
+      if $form->{"id_$i"} && ($form->{type} =~ /^sales_/ ||  $form->{type} =~ /invoice/ || $form->{type} =~ /^credit_note$/ ) && !$is_delivery_order;
 
     $form->{"listprice_$i"} = $form->format_amount(\%myconfig, $form->{"listprice_$i"}, 2)
       if $form->{"id_$i"} && ($form->{type} =~ /^sales_/ ||  $form->{type} =~ /invoice/) ;