From 9a7318d411034b8a7f41e1d52fd0d23170f0f44d Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Fri, 11 Nov 2005 08:51:08 +0000 Subject: [PATCH] Bug gefixed #206 Fehler beim Dialogbuchen wenn Korrektur und Steuerinklusive --- bin/mozilla/gl.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index c66fdf997..7962daf9c 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -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"} } -- 2.20.1