From 5e4382eb086eb3599a750c1c485696196ea7c390 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 12 Nov 2013 17:55:07 +0100 Subject: [PATCH] [-] BO : Fix bug #PSCFV-10982 reduction group truncated --- .../default/template/controllers/groups/helpers/form/form.tpl | 4 ++-- .../default/template/controllers/groups/helpers/view/view.tpl | 4 ++-- install-dev/upgrade/sql/1.5.6.1.sql | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl index 242ea2e22..d73c9cc69 100644 --- a/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/groups/helpers/form/form.tpl @@ -138,7 +138,7 @@ } else { - $('#group_discount_category_table').append(''+jsonData.catPath+'{l s='Discount:'}'+jsonData.discount+'{l s='%'}'); + $('#group_discount_category_table').append(''+jsonData.catPath+'{l s='Discount:'}' + ' ' + jsonData.discount+'{l s='%'}'); var input_hidden = document.createElement("input"); input_hidden.setAttribute('type', 'hidden'); @@ -168,7 +168,7 @@ {foreach $input['values'] key=key item=category } {$category.path} - {l s='Discount: %d%%' sprintf=$category.reduction} + {l s='Discount: %.2f%%' sprintf=$category.reduction} diff --git a/admin-dev/themes/default/template/controllers/groups/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/groups/helpers/view/view.tpl index 96908c212..6762c700c 100755 --- a/admin-dev/themes/default/template/controllers/groups/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/groups/helpers/view/view.tpl @@ -30,7 +30,7 @@