@@ -, +, @@ currency - Create a manual invoice for a patron - Edit the active currency, select 'Before' (should be the default here) - Use the charged patron to login at the OPAC - Edit the active currency, select 'After' --- Koha/Number/Price.pm | 3 +-- admin/currency.pl | 3 +++ .../prog/en/modules/admin/currency.tt | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) --- a/Koha/Number/Price.pm +++ a/Koha/Number/Price.pm @@ -95,7 +95,6 @@ sub round { sub _format_params { my ( $self, $params ) = @_; my $with_symbol = $params->{with_symbol} || 0; - my $p_cs_precedes = $params->{p_cs_precedes}; my $currency = Koha::Acquisition::Currencies->get_active; my $currency_format = C4::Context->preference("CurrencyFormat"); @@ -132,8 +131,8 @@ sub _format_params { } - $format_params{p_cs_precedes} = $p_cs_precedes if defined $p_cs_precedes; $format_params{p_sep_by_space} = ( $currency and $currency->p_sep_by_space ) ? 1 : 0; + $format_params{p_cs_precedes} = ( $currency and $currency->p_cs_precedes ) ? 1 : 0; return \%format_params; } --- a/admin/currency.pl +++ a/admin/currency.pl @@ -58,6 +58,7 @@ if ( $op eq 'add_form' ) { my $rate = $input->param('rate'); my $active = $input->param('active'); my $p_sep_by_space = $input->param('p_sep_by_space'); + my $p_cs_precedes = $input->param('p_cs_precedes'); my $is_a_modif = $input->param('is_a_modif'); if ($is_a_modif) { @@ -67,6 +68,7 @@ if ( $op eq 'add_form' ) { $currency->rate($rate); $currency->active($active); $currency->p_sep_by_space($p_sep_by_space); + $currency->p_cs_precedes($p_cs_precedes); eval { $currency->store; }; if ($@) { push @messages, { type => 'error', code => 'error_on_update' }; @@ -81,6 +83,7 @@ if ( $op eq 'add_form' ) { rate => $rate, active => $active, p_sep_by_space => $p_sep_by_space, + p_cs_precedes => $p_cs_precedes, } ); eval { $currency->store; }; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -102,6 +102,20 @@ [% END %] +
  • + + [% IF currency.p_cs_precedes %] + + + [% ELSE %] + + + [% END %] +
  • [% IF currency.active %] --