From ae0cd4d8bfee6f42faba56d541652548c68f6015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sat, 18 Jun 2016 16:38:39 +0200 Subject: [PATCH] Bug 16768: (followup) Add Swiss format for datatables (format_price.inc) This patch adds CH price format to: koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc (as of comment #6) Signed-off-by: Mirko Tietgen --- koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc index b0e5a8d..2bc052b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc @@ -7,12 +7,19 @@ decimal_point: ',', decimal_digits: 2 }; + [% ELSIF Koha.Preference("CurrencyFormat") == 'CH' %] + var default_value = { + thousands_sep: '\'', + decimal_point: '.', + decimal_digits: 2 + }; [% ELSE %] var default_value = { thousands_sep: ',', decimal_point: '.', decimal_digits: 2 }; + [% END %] Number.prototype.format_price = function( value, params ) { params = params == undefined ? {} : params; -- 2.1.4