Storno Bugfix. paid wurde unter bestimmten Bedingungen nicht richtig gesetzt.
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 18 Jul 2007 14:38:21 +0000 (14:38 +0000)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 18 Jul 2007 14:38:21 +0000 (14:38 +0000)
SL/AP.pm
SL/AR.pm

index b5e2520..6602093 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -765,7 +765,7 @@ sub storno {
   $storno_row->{invnumber}  = 'Storno-' . $storno_row->{invnumber};
   $storno_row->{amount}    *= -1;
   $storno_row->{netamount} *= -1;
-  $storno_row->{paid}       = $storno_amount->{amount};
+  $storno_row->{paid}       = $storno_row->{amount};
 
   delete @$storno_row{qw(itime mtime)};
 
index 79653a7..5fc6032 100644 (file)
--- a/SL/AR.pm
+++ b/SL/AR.pm
@@ -635,7 +635,7 @@ sub storno {
   $storno_row->{invnumber}  = 'Storno-' . $storno_row->{invnumber};
   $storno_row->{amount}    *= -1;
   $storno_row->{netamount} *= -1;
-  $storno_row->{paid}       = $storno_amount->{amount};
+  $storno_row->{paid}       = $storno_row->{amount};
 
   delete @$storno_row{qw(itime mtime)};