]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/is.pl
booking roundings to new standard-accounts
[mfinanz.git] / bin / mozilla / is.pl
index 46abc9efdc89faced602a0f3b2f257290e6e5792..bbbd157a3135cf2ad601c601ed8b7bc28f99180f 100644 (file)
@@ -463,6 +463,10 @@ sub form_footer {
     }
   }
 
+  my $total = $form->round_amount( $form->{invtotal}, 2, 1 );
+  $form->{rounding} = $form->round_amount( $total-$form->{invtotal}, 2 );
+  $form->{invtotal} = $total;
+
   # follow ups
   if ($form->{id}) {
     $form->{follow_ups}            = FU->follow_ups('trans_id' => $form->{id}) || [];