Belege runden, und Rundungsdifferenzen auf Extrakonten buchen.
[kivitendo-erp.git] / bin / mozilla / is.pl
index 46387e8..2a341eb 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}) || [];