Bug gefixed #206 Fehler beim Dialogbuchen wenn Korrektur und Steuerinklusive
authorPhilip Reetz <p.reetz@linet-services.de>
Fri, 11 Nov 2005 08:51:08 +0000 (08:51 +0000)
committerPhilip Reetz <p.reetz@linet-services.de>
Fri, 11 Nov 2005 08:51:08 +0000 (08:51 +0000)
bin/mozilla/gl.pl

index c66fdf9..7962daf 100644 (file)
@@ -1631,6 +1631,12 @@ sub post {
         } else {
           $form->{"tax_$i"} = 0;
         }
+      } elsif ($form->{taxincluded}) {
+        if ($debitcredit) {
+          $form->{"debit_$i"} = $form->{"debit_$i"} - $form->{"tax_$i"};
+        } else {
+          $form->{"credit_$i"} = $form->{"credit_$i"} - $form->{"tax_$i"};
+        }
       }
 
       for (@flds) { $a[$j]->{$_} = $form->{"${_}_$i"} }