Bugzilla – Attachment 52524 Details for
Bug 16768
Add official number format for Switzerland: 1'234'567.89
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16768: (followup) Add Swiss format for datatables (format_price.inc)
Bug-16768-followup-Add-Swiss-format-for-datatables.patch (text/plain), 1.38 KB, created by
Mirko Tietgen
on 2016-06-18 16:36:20 UTC
(
hide
)
Description:
Bug 16768: (followup) Add Swiss format for datatables (format_price.inc)
Filename:
MIME Type:
Creator:
Mirko Tietgen
Created:
2016-06-18 16:36:20 UTC
Size:
1.38 KB
patch
obsolete
>From ae0cd4d8bfee6f42faba56d541652548c68f6015 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >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 <mirko@abunchofthings.net> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16768
:
52504
|
52505
|
52506
|
52507
|
52519
|
52521
|
52523
|
52524
|
52527
|
52528
|
52529
|
52530
|
52531