View | Details | Raw Unified | Return to bug 15084
Collapse All | Expand All

(-)a/admin/currency.pl (-174 / +88 lines)
Lines 1-26 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
#script to administer the aqbudget table
4
#written 20/02/2002 by paul.poulain@free.fr
5
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
6
7
# ALGO :
8
# this script use an $op to know what to do.
9
# if $op is empty or none of the above values,
10
#	- the default screen is build (with all records, or filtered datas).
11
#	- the   user can clic on add, modify or delete record.
12
# if $op=add_form
13
#	- if primkey exists, this is a modification,so we read the $primkey record
14
#	- builds the add/modify form
15
# if $op=add_validate
16
#	- the user has just send datas, so we create/modify the record
17
# if $op=delete_form
18
#	- we show the record having primkey=$primkey and ask for deletion validation form
19
# if $op=delete_confirm
20
#	- we delete the record having primkey=$primkey
21
22
23
# Copyright 2000-2002 Katipo Communications
3
# Copyright 2000-2002 Katipo Communications
4
# Copyright 2002 Paul Poulain
5
# Copyright Koha Development Team
24
#
6
#
25
# This file is part of Koha.
7
# This file is part of Koha.
26
#
8
#
Lines 37-216 Link Here
37
# You should have received a copy of the GNU General Public License
19
# You should have received a copy of the GNU General Public License
38
# along with Koha; if not, see <http://www.gnu.org/licenses>.
20
# along with Koha; if not, see <http://www.gnu.org/licenses>.
39
21
40
use strict;
22
use Modern::Perl;
41
use warnings;
42
use CGI qw ( -utf8 );
23
use CGI qw ( -utf8 );
43
use C4::Context;
44
use C4::Auth;
24
use C4::Auth;
25
use C4::Context;
45
use C4::Output;
26
use C4::Output;
46
use C4::Budgets qw/GetCurrency GetCurrencies/;
47
48
our $input = CGI->new;
49
my $searchfield = $input->param('searchfield') || $input->param('description') || q{};
50
our $offset      = $input->param('offset') || 0;
51
my $op          = $input->param('op')     || q{};
52
my $script_name = '/cgi-bin/koha/admin/currency.pl';
53
our $pagesize = 20;
54
27
55
our ($template, $loggedinuser, $cookie) = get_template_and_user({
28
use Koha::Acquisition::Currency;
56
    template_name => 'admin/currency.tt',
29
use Koha::Acquisition::Currencies;
57
    query => $input,
30
58
    type => 'intranet',
31
my $input         = CGI->new;
59
    flagsrequired => {parameters => 'parameters_remaining_permissions'},
32
my $searchfield   = $input->param('searchfield') || $input->param('description') || q{};
60
    authnotrequired => 0,
33
my $currency_code = $input->param('currency_code');
61
});
34
my $op            = $input->param('op') || 'list';
62
35
my @messages;
63
$searchfield=~ s/\,//g;
36
64
37
our ( $template, $loggedinuser, $cookie ) = get_template_and_user(
65
38
    {   template_name   => 'admin/currency.tt',
66
$template->param(searchfield => $searchfield,
39
        query           => $input,
67
        script_name => $script_name);
40
        type            => 'intranet',
68
41
        authnotrequired => 0,
69
our $dbh = C4::Context->dbh;
42
        flagsrequired   => { parameters => 'parameters_remaining_permissions' },
43
    }
44
);
70
45
71
if ( $op eq 'add_form' ) {
46
if ( $op eq 'add_form' ) {
72
    add_form($searchfield);
47
    my $currency;
73
} elsif ( $op eq 'save' ) {
48
    if ($currency_code) {
74
    add_validate();
49
        $currency = Koha::Acquisition::Currencies->find($currency_code);
75
    print $input->redirect('/cgi-bin/koha/admin/currency.pl');
76
} elsif ( $op eq 'delete_confirm' ) {
77
    delete_confirm($searchfield);
78
} elsif ( $op eq 'delete_confirmed' ) {
79
    delete_currency($searchfield);
80
} else {
81
    default_path($searchfield);
82
}
83
84
output_html_with_http_headers $input, $cookie, $template->output;
85
86
sub default_path {
87
    my $searchfield = shift;
88
    $template->param( else => 1 );
89
90
    my @currencies = GetCurrencies();
91
    if ($searchfield) {
92
        @currencies = grep { $_->{currency} =~ m/^$searchfield/o } @currencies;
93
    }
50
    }
94
    my $end_of_page = $offset + $pagesize;
51
95
    if ( $end_of_page > @currencies ) {
52
    $template->param( currency => $currency, );
96
        $end_of_page = @currencies;
53
} elsif ( $op eq 'add_validate' ) {
54
    my $currency_code = $input->param('currency_code');
55
    my $symbol        = $input->param('symbol');
56
    my $isocode       = $input->param('isocode');
57
    my $rate          = $input->param('rate');
58
    my $active        = $input->param('active');
59
    my $is_a_modif    = $input->param('is_a_modif');
60
61
    if ($is_a_modif) {
62
        my $currency = Koha::Acquisition::Currencies->find($currency_code);
63
        $currency->symbol($symbol);
64
        $currency->isocode($isocode);
65
        $currency->rate($rate);
66
        $currency->active($active);
67
        eval { $currency->store; };
68
        if ($@) {
69
            push @messages, { type => 'error', code => 'error_on_update' };
70
        } else {
71
            push @messages, { type => 'message', code => 'success_on_update' };
72
        }
97
    } else {
73
    } else {
98
        $template->param(
74
        my $currency = Koha::Acquisition::Currency->new(
99
            ltcount  => 1,
75
            {   currency => $currency_code,
100
            nextpage => $end_of_page
76
                symbol   => $symbol,
77
                isocode  => $isocode,
78
                rate     => $rate,
79
                active   => $active,
80
            }
101
        );
81
        );
82
        eval { $currency->store; };
83
        if ($@) {
84
            push @messages, { type => 'error', code => 'error_on_insert' };
85
        } else {
86
            push @messages, { type => 'message', code => 'success_on_insert' };
87
        }
102
    }
88
    }
103
    $end_of_page--;
89
    $searchfield = q||;
104
    my @display_curr = @currencies[ $offset .. $end_of_page ];
90
    $op          = 'list';
105
    my $activecurrency = GetCurrency();
91
} elsif ( $op eq 'delete_confirm' ) {
92
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
106
93
94
    # TODO rewrite the following when Koha::Acquisition::Orders will use Koha::Objects
95
    my $schema = Koha::Database->schema;
96
    my $nb_of_orders = $schema->resultset('Aqorder')->search( { currency => $currency->currency } )->count;
107
    $template->param(
97
    $template->param(
108
        loop           => \@display_curr,
98
        currency     => $currency,
109
        activecurrency => defined $activecurrency,
99
        nb_of_orders => $nb_of_orders,
110
    );
100
    );
101
} elsif ( $op eq 'delete' ) {
102
    my $currency = Koha::Acquisition::Currencies->find($currency_code);
103
    my $deleted = eval { $currency->delete; };
111
104
112
    if ( $offset > 0 ) {
105
    if ( $@ or not $deleted ) {
113
        $template->param(
106
        push @messages, { type => 'error', code => 'error_on_delete' };
114
            offsetgtzero => 1,
107
    } else {
115
            prevpage     => $offset - $pagesize
108
        push @messages, { type => 'message', code => 'success_on_delete' };
116
        );
117
    }
109
    }
118
    return;
110
    $op = 'list';
119
}
120
121
sub delete_currency {
122
    my $curr = shift;
123
124
    # TODO This should be a method of Currency
125
    # also what about any orders using this currency
126
    $template->param( delete_confirmed => 1 );
127
    $dbh->do( 'delete from currency where currency=?', {}, $curr );
128
    return;
129
}
111
}
130
112
131
sub delete_confirm {
113
if ( $op eq 'list' ) {
132
    my $curr = shift;
114
    $searchfield =~ s/\,//g;
133
115
    my $currencies = Koha::Acquisition::Currencies->search( { currency => { -like => "$searchfield%" } } );
134
    $template->param( delete_confirm => 1 );
135
    my $total_row = $dbh->selectrow_hashref(
136
        'select count(*) as total from aqbooksellers where currency=?',
137
        {}, $curr );
138
139
    my $curr_ref = $dbh->selectrow_hashref(
140
        'select currency,rate from currency where currency=?',
141
        {}, $curr );
142
143
    if ( $total_row->{total} ) {
144
        $template->param( totalgtzero => 1 );
145
    }
146
116
117
    my $no_active_currency = not Koha::Acquisition::Currencies->search( { active => 1 } )->count;
147
    $template->param(
118
    $template->param(
148
        rate  => $curr_ref->{rate},
119
        currencies         => $currencies,
149
        total => $total_row->{total}
120
        no_active_currency => $no_active_currency,
150
    );
121
    );
151
152
    return;
153
}
154
155
sub add_form {
156
    my $curr = shift;
157
158
    $template->param( add_form => 1 );
159
160
    #---- if primkey exists, it's a modify action, so read values to modify...
161
    my $date;
162
    if ($curr) {
163
        my $curr_rec =
164
          $dbh->selectrow_hashref( 'select * from currency where currency=?',
165
            {}, $curr );
166
        for ( keys %{$curr_rec} ) {
167
            if($_ eq "timestamp"){ $date = $curr_rec->{$_}; }
168
            $template->param( $_ => $curr_rec->{$_} );
169
        }
170
    }
171
172
    return;
173
}
122
}
174
123
175
sub add_validate {
124
$template->param(
176
    $template->param( add_validate => 1 );
125
    searchfield => $searchfield,
177
126
    messages    => \@messages,
178
    my $rec = {
127
    op          => $op,
179
        rate     => $input->param('rate'),
128
);
180
        symbol   => $input->param('symbol') || q{},
181
        isocode  => $input->param('isocode') || q{},
182
        active   => $input->param('active') || 0,
183
        currency => $input->param('currency'),
184
    };
185
186
    if ( $rec->{active} == 1 ) {
187
        $dbh->do('UPDATE currency SET active = 0');
188
    }
189
190
    my ($row_count) = $dbh->selectrow_array(
191
        'select count(*) as count from currency where currency = ?',
192
        {}, $input->param('currency') );
193
    if ($row_count) {
194
        $dbh->do(
195
q|UPDATE currency SET rate = ?, symbol = ?, isocode = ?, active = ? WHERE currency = ? |,
196
            {},
197
            $rec->{rate},
198
            $rec->{symbol},
199
            $rec->{isocode},
200
            $rec->{active},
201
            $rec->{currency}
202
        );
203
    } else {
204
        $dbh->do(
205
q|INSERT INTO currency (currency, rate, symbol, isocode, active) VALUES (?,?,?,?,?) |,
206
            {},
207
            $rec->{currency},
208
            $rec->{rate},
209
            $rec->{symbol},
210
            $rec->{isocode},
211
            $rec->{active}
212
        );
213
129
214
    }
130
output_html_with_http_headers $input, $cookie, $template->output;
215
    return;
216
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-94 / +80 lines)
Lines 2-11 Link Here
2
[% USE ColumnsSettings %]
2
[% USE ColumnsSettings %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Administration &rsaquo; Currencies &amp; Exchange rates &rsaquo;
4
<title>Koha &rsaquo; Administration &rsaquo; Currencies &amp; Exchange rates &rsaquo;
5
[% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %]
5
[% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %]
6
[% IF ( delete_confirm ) %]Confirm deletion of currency '[% searchfield %]'[% END %]
6
[% IF op == 'delete_' %]Confirm deletion of currency '[% searchfield %]'[% END %]
7
[% IF ( delete_confirmed ) %]Currency deleted[% END %]
7
[% IF op == 'list' %]Currencies[% END %]</title>
8
[% IF ( else ) %]Currencies[% END %]</title>
9
[% INCLUDE 'doc-head-close.inc' %]
8
[% INCLUDE 'doc-head-close.inc' %]
10
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
9
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
11
[% INCLUDE 'datatables.inc' %]
10
[% INCLUDE 'datatables.inc' %]
Lines 51-60 Link Here
51
50
52
51
53
52
54
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;  <a href="/cgi-bin/koha/admin/currency.pl">Currencies &amp; Exchange rates</a> &rsaquo; [% IF ( add_form ) %][% IF ( searchfield ) %]Modify currency '[% searchfield %]'[% ELSE %]New currency[% END %][% END %]
53
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo;  <a href="/cgi-bin/koha/admin/currency.pl">Currencies &amp; Exchange rates</a> &rsaquo; [% IF op == 'add_form' %][% IF currency %]Modify currency '[% currency.currency %]'[% ELSE %]New currency[% END %][% END %]
55
[% IF ( delete_confirm ) %]Confirm deletion of currency '<span class="ex">[% searchfield %]</span>'[% END %]
54
[% IF op == 'delete_confirm' %]Confirm deletion of currency '<span class="ex">[% searchfield %]</span>'
56
[% IF ( delete_confirmed ) %]Currency deleted[% END %]
55
[% ELSIF op == 'list' %]Currencies
57
[% IF ( else ) %]Currencies[% END %]
56
[% END %]
58
</div>
57
</div>
59
58
60
<div id="doc3" class="yui-t2">
59
<div id="doc3" class="yui-t2">
Lines 62-120 Link Here
62
<div id="bd">
61
<div id="bd">
63
    <div id="yui-main">
62
    <div id="yui-main">
64
    <div class="yui-b">
63
    <div class="yui-b">
65
[% IF ( else ) %]
64
[% IF op == 'list' %]
66
<div id="toolbar" class="btn-toolbar">
65
<div id="toolbar" class="btn-toolbar">
67
    <a class="btn btn-small" id="newcurrency" href="[% script_name %]?op=add_form"><i class="fa fa-plus"></i> New currency</a>
66
    <a class="btn btn-small" id="newcurrency" href="/cgi-bin/koha/admin/currency.pl?op=add_form"><i class="fa fa-plus"></i> New currency</a>
68
</div>
67
</div>
69
[% END %]
68
[% END %]
70
69
71
[% IF ( add_form ) %]
70
[% IF op == 'add_form' %]
72
71
73
<form action="[% script_name %]" name="Aform" method="post" class="validated">
72
<form action="/cgi-bin/koha/admin/currency.pl" name="Aform" method="post" class="validated">
74
    <input type="hidden" name="op" value="save" />
73
    <input type="hidden" name="op" value="add_validate" />
75
    <fieldset class="rows">
74
    <fieldset class="rows">
76
    <legend>[% IF ( searchfield ) %]
75
        <legend>
77
        Modify currency
76
            [% IF currency %]
78
    [% ELSE %]
77
                Modify currency
79
        New currency
80
    [% END %]</legend>
81
    <ol>
82
        <li>
83
    [% IF ( searchfield ) %]
84
            <span class="label">Currency: </span>
85
            <input type="hidden" name="currency" id="currency" value="[% searchfield %]" />[% searchfield %]
86
    [% ELSE %]
87
            <label for="currency" class="required">Currency: </label>
88
            <input type="text" name="currency" id="currency" size="50" maxlength="50" onblur="toUC(this);" required="required" class="required" /> <span class="required">Required</span>
89
    [% END %]
90
        </li>
91
        <li>
92
            <label for="rate" class="required">Rate: </label>
93
            <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% rate %]" required="required" class="required" /> <span class="required">Required</span>
94
        </li>
95
        <li>
96
            <label for="symbol" class="required">Symbol: </label>
97
            <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% symbol %]" required="required" class="required" /> <span class="required">Required</span>
98
        </li>
99
        <li>
100
            <label for="isocode">ISO code: </label>
101
            <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% isocode %]" />
102
        </li>
103
        <li>
104
            <span class="label">Last updated: </span>[% timestamp | $KohaDates %]
105
        </li>
106
        <li>
107
            <label for="active">Active: </label>
108
            [% IF ( active ) %]
109
            <input type="checkbox" id="active" name="active" value="1" checked="checked" />
110
            [% ELSE %]
78
            [% ELSE %]
111
            <input type="checkbox" id="active" name="active" value="1" />
79
                New currency
112
            [% END %]
80
            [% END %]
113
            <span id="hint" class="hint"></span>
81
        </legend>
114
        </li>
82
        <ol>
115
83
            <li>
84
                [% IF currency %]
85
                    <span class="label">Currency: </span>
86
                    <input type="hidden" name="is_a_modif" value="1" />
87
                    <input type="hidden" name="currency_code" id="currency" value="[% currency.currency %]" />[% currency.currency %]
88
                [% ELSE %]
89
                    <label for="currency_code" class="required">Currency: </label>
90
                    <input type="text" name="currency_code" id="currency_code" size="50" maxlength="50" onblur="toUC(this);" required="required" class="required" /> <span class="required">Required</span>
91
                [% END %]
92
            </li>
93
            <li>
94
                <label for="rate" class="required">Rate: </label>
95
                <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate %]" required="required" class="required" /> <span class="required">Required</span>
96
            </li>
97
            <li>
98
                <label for="symbol" class="required">Symbol: </label>
99
                <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol %]" required="required" class="required" /> <span class="required">Required</span>
100
            </li>
101
            <li>
102
                <label for="isocode">ISO code: </label>
103
                <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode %]" />
104
            </li>
105
            <li>
106
                <span class="label">Last updated: </span>[% currency.timestamp | $KohaDates %]
107
            </li>
108
            <li>
109
                <label for="active">Active: </label>
110
                [% IF currency.active %]
111
                <input type="checkbox" id="active" name="active" value="1" checked="checked" />
112
                [% ELSE %]
113
                <input type="checkbox" id="active" name="active" value="1" />
114
                [% END %]
115
                <span id="hint" class="hint"></span>
116
            </li>
116
        </ol>
117
        </ol>
117
        </fieldset>
118
    </fieldset>
118
119
119
    <fieldset class="action">
120
    <fieldset class="action">
120
        <input type="submit" value="Submit" />
121
        <input type="submit" value="Submit" />
Lines 124-176 Link Here
124
125
125
[% END %]
126
[% END %]
126
127
127
[% IF ( delete_confirm ) %]
128
[% IF op =='delete_confirm' %]
128
    [% IF ( totalgtzero ) %]
129
    [% IF nb_of_orders %]
129
    <div class="dialog message">
130
    <div class="dialog alert">
130
        <h3>Cannot delete currency <span class="ex">'[% searchfield %]'</span></h3>
131
        <h3>Cannot delete currency <span class="ex">'[% currency.currency %]'</span></h3>
131
        <p>This currency is used [% total %] times. Deletion not possible</p>
132
        <p>This currency is used by [% nb_of_orders %] orders. Deletion not possible</p>
132
        <form action="[% script_name %]" method="post">
133
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
133
            <input type="submit" value="OK" class="approve" />
134
            <input type="submit" value="OK" class="approve" />
134
        </form>
135
        </form>
135
    </div>
136
    </div>
136
    [% ELSE %]
137
    [% ELSE %]
137
    <div class="dialog alert">
138
    <div class="dialog alert">
138
        <h3>Confirm deletion of currency <span class="ex">'[% searchfield %]'</span></h3>
139
        <h3>Confirm deletion of currency <span class="ex">'[% currency.currency %]'</span></h3>
139
        <table>
140
        <table>
140
            <tr><th>Currency</th>
141
            <tr><th>Currency</th>
141
                <td>[% searchfield %]</td>
142
                <td>[% currency.currency %]</td>
142
            </tr>
143
            </tr>
143
            <tr><th>Rate</th>
144
            <tr><th>Rate</th>
144
                <td>[% rate %]</td>
145
                <td>[% currency.rate %]</td>
145
            </tr>
146
            </tr>
146
        </table>
147
        </table>
147
        <form action="[% script_name %]" method="post">
148
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
148
            <input type="hidden" name="op" value="delete_confirmed" />
149
            <input type="hidden" name="op" value="delete_confirmed" />
149
            <input type="hidden" name="searchfield" value="[% searchfield %]" />
150
            <input type="hidden" name="currency_code" value="[% currency.currency_code %]" />
150
            <input type="submit" class="approve" value="Delete this currency" />
151
            <input type="submit" class="approve" value="Delete this currency" />
151
        </form>
152
        </form>
152
        <form action="[% script_name %]" method="post">
153
        <form action="/cgi-bin/koha/admin/currency.pl" method="post">
153
            <input type="submit" class="deny" value="No, do not delete" />
154
            <input type="submit" class="deny" value="No, do not delete" />
154
        </form>
155
        </form>
155
    </div>
156
    </div>
156
    [% END %]
157
    [% END %]
157
[% END %]
158
[% END %]
158
159
159
[% IF ( delete_confirmed ) %]
160
[% IF op == 'list' %]
160
<div class="dialog message"><h3>Currency deleted</h3>
161
<form action="[% script_name %]" method="post">
162
    <input type="submit" class="approve" value="OK" />
163
</form></div>
164
[% END %]
165
166
[% IF ( else ) %]
167
161
168
<h2>Currencies and exchange rates</h2>
162
<h2>Currencies and exchange rates</h2>
169
163
170
[% IF ( loop ) %][% UNLESS ( activecurrency ) %]<div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>[% END %][% END %]
164
    [% IF currencies and no_active_currency %]
171
165
        <div class="dialog alert"><h3>No active currency is defined</h3><p>Please edit one currency and mark it as active.</p></div>
166
    [% END %]
172
167
173
    [% IF ( searchfield ) %]
168
    [% IF searchfield %]
174
        You searched for [% searchfield %]</span>
169
        You searched for [% searchfield %]</span>
175
    [% END %]
170
    [% END %]
176
171
Lines 187-219 Link Here
187
        </tr>
182
        </tr>
188
      </thead>
183
      </thead>
189
      <tbody>
184
      <tbody>
190
        [% FOREACH loo IN loop %]
185
        [% FOREACH currency IN currencies %]
191
          <tr>
186
          <tr>
192
            <td>[% loo.currency %]</td>
187
            <td>[% currency.currency %]</td>
193
            <td>[% loo.rate %]</td>
188
            <td>[% currency.rate %]</td>
194
            <td>[% loo.symbol |html %]</td>
189
            <td>[% currency.symbol |html %]</td>
195
            <td>[% loo.isocode |html %]</td>
190
            <td>[% currency.isocode |html %]</td>
196
            <td><span title="[% loo.timestamp %]">[% loo.timestamp | $KohaDates %]</span></td>
191
            <td><span title="[% currency.timestamp %]">[% currency.timestamp | $KohaDates %]</span></td>
197
            <td style="color:green;">[% IF ( loo.active ) %]✓[% END %]</td>
192
            <td style="color:green;">[% IF currency.active %]✓[% END %]</td>
198
            <td>
193
            <td>
199
              <a href="[% loo.script_name %]?op=add_form&amp;searchfield=[% loo.currency %]">Edit</a>
194
              <a href="/cgi-bin/koha/admin/currency.pl?op=add_form&amp;currency_code=[% currency.currency %]">Edit</a>
200
              |
195
              |
201
              <a href="[% loo.script_name %]?op=delete_confirm&amp;searchfield=[% loo.currency %]">Delete</a>
196
              <a href="/cgi-bin/koha/admin/currency.pl?op=delete_confirm&amp;currency_code=[% currency.currency %]">Delete</a>
202
            </td>
197
            </td>
203
          </tr>
198
          </tr>
204
        [% END %]
199
        [% END %]
205
      </tbody>
200
      </tbody>
206
    </table>
201
    </table>
207
<br />
208
209
    [% IF ( offsetgtzero ) %]
210
        <a href="[% script_name %]?offset=[% prevpage %]">&lt;&lt; Previous</a>
211
    [% END %]
212
213
    [% IF ( ltcount ) %]
214
        <a href="[% script_name %]?offset=[% nextpage %]">Next &gt;&gt;</a>
215
    [% END %]
216
202
203
    <br />
217
    <div class="hint">
204
    <div class="hint">
218
        <p>
205
        <p>
219
            When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency.
206
            When importing MARC files via the staging tools, the tool will attempt to find and use the price of the currently active currency.
220
- 

Return to bug 15084