]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/common.pl
Kunden-/Lieferanten-Infofenster: Prozent richtig ausgeben
[mfinanz.git] / bin / mozilla / common.pl
index 59c2f9481671e2090b4b05617a31b2a9f109eb21..8e374ec51b4b9300cbb3fbe2528e3b57f28aeb07 100644 (file)
@@ -455,6 +455,7 @@ sub show_vc_details {
                  $locale->text("No vendor has been selected yet."));
 
   Common->get_vc_details(\%myconfig, $form, $form->{vc}, $form->{vc_id});
+  $form->{discount_as_percent} = $form->format_amount(\%::myconfig, $form->parse_amount(\%::myconfig, $form->{discount}) * 100, 2);
 
   $form->{title} = $form->{vc} eq "customer" ?
     $locale->text("Customer details") : $locale->text("Vendor details");