Fehler bei Berechnung der Summe fuers Debitorenkonto behebt Bug#260
authorPhilip Reetz <p.reetz@linet-services.de>
Mon, 16 Jan 2006 16:12:20 +0000 (16:12 +0000)
committerPhilip Reetz <p.reetz@linet-services.de>
Mon, 16 Jan 2006 16:12:20 +0000 (16:12 +0000)
SL/AR.pm

index aeb6430..76cea55 100644 (file)
--- a/SL/AR.pm
+++ b/SL/AR.pm
@@ -84,7 +84,8 @@ sub post_transaction {
   $form->{amount} = $form->{netamount};
 
   $form->{tax} = 0;
-
+  $form->{netamount} = 0;
+  $form->{total_tax} = 0;
   # taxincluded doesn't make sense if there is no amount
 
   $form->{taxincluded} = 0 if ($form->{amount} == 0);