Bug 16768: (followup) Add Swiss format for datatables (format_price.inc)
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / includes / format_price.inc
index b0e5a8d..2bc052b 100644 (file)
@@ -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;