]> wagnertech.de Git - mfinanz.git/blobdiff - SL/AP.pm
Debitoren- und Kreditorenbuchungen in Fremdwährung öffnen
[mfinanz.git] / SL / AP.pm
index 594728546e82d3976b99ea5e44aa4847bb1302a6..e8dd4958a6a15083f7c41bbadf44f37396ba74a8 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -746,7 +746,7 @@ sub setup_form {
           }
 
           $index                 = $form->{acc_trans}{$key}->[$i - 1]->{index};
-          $form->{"tax_$index"}  = $form->{acc_trans}{$key}->[$i - 1]->{amount} * -1;
+          $form->{"tax_$index"}  = $form->round_amount($form->{acc_trans}{$key}->[$i - 1]->{amount} * -1 / $exchangerate, 2);
           $totaltax             += $form->{"tax_$index"};
 
         } else {