Browse Source

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 <mirko@abunchofthings.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
16.11.x
Marc Véron 8 years ago
committed by Kyle M Hall
parent
commit
8b9bbeaac4
  1. 7
      koha-tmpl/intranet-tmpl/prog/en/includes/format_price.inc

7
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;

Loading…
Cancel
Save