]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/is.pl
booking roundings to new standard-accounts
[kivitendo-erp.git] / bin / mozilla / is.pl
index fdcf5e1c4ffb9273d208c307d6acfa728c3efce8..bbbd157a3135cf2ad601c601ed8b7bc28f99180f 100644 (file)
@@ -462,7 +462,10 @@ sub form_footer {
       }
     }
   }
-  $form->{invtotal} = $form->round_amount($form->{invtotal}, 2, 1);
+
+  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}) {