]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/is.pl
Belege runden, und Rundungsdifferenzen auf Extrakonten buchen.
[mfinanz.git] / bin / mozilla / is.pl
index 46387e8e008df1891ad16ab430f70b2deb8f0cd6..2a341eb9a7f158dfbb7e3a7dec0115f7c014111e 100644 (file)
@@ -460,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}) || [];