From c853dd6ea551604bdf99a46a6b048b393823ca68 Mon Sep 17 00:00:00 2001 From: Thomas Heck Date: Tue, 26 Nov 2013 14:35:28 +0100 Subject: [PATCH] Kunden-/Lieferanten-Infofenster: Prozent richtig ausgeben fixt #2401 --- bin/mozilla/common.pl | 1 + templates/webpages/common/show_vc_details.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %] -- 2.20.1