Bugzilla – Attachment 32211 Details for
Bug 12844
Introduce a centralized way to display prices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12844: Force the symbol place
Bug-12844-Force-the-symbol-place.patch (text/plain), 1.09 KB, created by
Jonathan Druart
on 2014-10-10 20:51:08 UTC
(
hide
)
Description:
Bug 12844: Force the symbol place
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-10-10 20:51:08 UTC
Size:
1.09 KB
patch
obsolete
>From 6c2c8d911680a311baf28634fba1fb5fa7059dee Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 10 Oct 2014 22:47:32 +0200 >Subject: [PATCH] Bug 12844: Force the symbol place > >Looking with Katrin at the default configuration of Number::Format, she >has the p_cs_precedes value set to 0 (put the symbol at the end). > >The tests should mock this value in order to pass on all configuration. > >This default value for this variable certainly depends on the locales. >--- > t/Number/Price.t | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/Number/Price.t b/t/Number/Price.t >index edb6d53..2735844 100644 >--- a/t/Number/Price.t >+++ b/t/Number/Price.t >@@ -17,6 +17,7 @@ $currency = { > symbol => '$', > rate => 1, > active => 1, >+ p_cs_precedes => 1, # Force to place the symbol at the beginning > }; > > is( Koha::Number::Price->new->format, '0.00', 'US: format 0' ); >@@ -46,6 +47,7 @@ $currency = { > symbol => 'â¬', > rate => 1, > active => 1, >+ p_cs_precedes => 1, > }; > > # Actually,the price formating for France is 3,00⬠>-- >2.1.0
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 12844
:
31258
|
31259
|
31260
|
31304
|
31618
|
31624
|
31625
|
31626
|
31627
|
31813
|
31826
|
32211
|
32229
|
32314
|
32315
|
32316
|
32317
|
32318