]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/is.pl
Revert "JavaScript-Plugin: auch als Filter einsetzen können"
[mfinanz.git] / bin / mozilla / is.pl
index d3e8044e732f1bdf4e2f9e931aa050c31cb4e295..2a341eb9a7f158dfbb7e3a7dec0115f7c014111e 100644 (file)
@@ -95,8 +95,6 @@ sub edit {
 
   $main::auth->assert('invoice_edit');
 
-  $form->{AUTH} = $::auth;
-
   $form->{taxincluded_changed_by_user} = 1;
 
   # show history button
@@ -462,6 +460,11 @@ sub form_footer {
     }
   }
 
+  $form->{rounding} = $form->round_amount(
+    $form->round_amount($form->{invtotal}, 2, 1) - $form->round_amount($form->{invtotal}, 2), 2
+  );
+  $form->{invtotal} = $form->round_amount( $form->{invtotal}, 2, 1 );
+
   # follow ups
   if ($form->{id}) {
     $form->{follow_ups}            = FU->follow_ups('trans_id' => $form->{id}) || [];