From: Thomas Heck Date: Tue, 26 Nov 2013 13:35:28 +0000 (+0100) Subject: Kunden-/Lieferanten-Infofenster: Prozent richtig ausgeben X-Git-Tag: release-3.1.0beta1~22^2~113 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c853dd6ea551604bdf99a46a6b048b393823ca68;p=kivitendo-erp.git Kunden-/Lieferanten-Infofenster: Prozent richtig ausgeben fixt #2401 --- diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 59c2f9481..8e374ec51 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -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"); diff --git a/templates/webpages/common/show_vc_details.html b/templates/webpages/common/show_vc_details.html index e0555d33c..e173bee50 100644 --- a/templates/webpages/common/show_vc_details.html +++ b/templates/webpages/common/show_vc_details.html @@ -102,7 +102,7 @@ [% 'Discount' | $T8 %] - [% HTML.escape(discount) %]% + [% HTML.escape(discount_as_percent) %]% [% IF is_customer %]