From 8b9bbeaac470838e7caf330ceef25a67d96dd2d1 Mon Sep 17 00:00:00 2001 From: =?utf8?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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 b0e5a8d3b3..2bc052bdb0 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.39.5