[Koha-bugs] [Bug 12844] Introduce a centralized way to display prices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 10 23:16:17 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12844

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #30 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
This seems to make the tests pass on my system:

sub _format_params {
    my ( $self, $params ) = @_;
    my $with_symbol = $params->{with_symbol} || 0;
    my $currency        = GetCurrency();
    my $currency_format = C4::Context->preference("CurrencyFormat");

    my $int_curr_symbol = q||;
    my %format_params = (
        int_curr_symbol   => $int_curr_symbol,
        mon_thousands_sep => ',',
        mon_decimal_point => '.',
+            p_cs_precedes => 1,
+            p_sep_by_space => 0,
    );

    if ( $currency_format eq 'FR' ) {
        # FIXME This test should be done for all currencies
        $int_curr_symbol = $currency->{symbol} if $with_symbol;
        %format_params = (
            decimal_fill      => '2',
            decimal_point     => ',',
            int_curr_symbol   => $int_curr_symbol,
            mon_thousands_sep => ' ',
            thousands_sep     => ' ',
+           mon_decimal_point => ',',
+            p_cs_precedes => 1,
            p_sep_by_space => 0,

        );
    }

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list