]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/oe.pl
Revert "JavaScript-Plugin: auch als Filter einsetzen können"
[mfinanz.git] / bin / mozilla / oe.pl
index 92b79f3cf865bd2f314cdf5033f04ed15d4fae36..164eab3ef3c1e169fb1ead8c7f09d310039c9c71 100644 (file)
@@ -533,9 +533,6 @@ sub form_footer {
               </tr> |;
       }
     }
-
-#    $form->{invsubtotal} = $form->format_amount(\%myconfig, $form->{invsubtotal}, 2, 0); # template does this
-
   } else {
     foreach my $item (split / /, $form->{taxaccounts}) {
       if ($form->{"${item}_base"}) {
@@ -557,6 +554,10 @@ sub form_footer {
     }
   }
 
+  $form->{rounding} = $form->round_amount(
+    $form->round_amount($form->{invtotal}, 2, 1) - $form->round_amount($form->{invtotal}, 2)
+  );
+  $form->{invtotal} = $form->round_amount( $form->{invtotal}, 2, 1);
   $form->{oldinvtotal} = $form->{invtotal};
 
   $TMPL_VAR{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted();
@@ -592,8 +593,6 @@ sub update {
 
   set_headings($form->{"id"} ? "edit" : "add");
 
-  $form->{insertdate} = SL::DB::Order->new(id => $form->{id})->load->itime_as_date if $form->{id};
-
   $form->{update} = 1;
 
   &check_name($form->{vc});
@@ -788,7 +787,6 @@ sub search {
   $form->header();
 
   print $form->parse_html_template('oe/search', {
-    %myconfig,
     is_order => scalar($form->{type} =~ /_order/),
   });