Kunden-/Lieferanten-Infofenster: Prozent richtig ausgeben
authorThomas Heck <theck@linet-services.de>
Tue, 26 Nov 2013 13:35:28 +0000 (14:35 +0100)
committerThomas Heck <theck@linet-services.de>
Tue, 26 Nov 2013 13:35:28 +0000 (14:35 +0100)
fixt #2401

bin/mozilla/common.pl
templates/webpages/common/show_vc_details.html

index 59c2f94..8e374ec 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");
index e0555d3..e173bee 100644 (file)
 
   <tr>
    <td align="right">[% 'Discount' | $T8 %]</td>
-   <td>[% HTML.escape(discount) %]%</td>
+   <td>[% HTML.escape(discount_as_percent) %]%</td>
   </tr>
 
   [% IF is_customer %]