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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt (-5 / +5 lines)
Lines 119-130 Link Here
119
                <li>
119
                <li>
120
                    <label>Transaction library</label>
120
                    <label>Transaction library</label>
121
                    <select name="branch" id="branch">
121
                    <select name="branch" id="branch">
122
                        <option value="ALL">All</option>
122
                        <option value="">All libraries</option>
123
                        [% FOREACH branchloo IN branchloop %]
123
                        [% FOREACH library IN Branches.all( selected => selected_library ) %]
124
                            [% IF ( branchloo.selected ) %]
124
                            [% IF library.selected %]
125
                            <option value="[% branchloo.branchcode | html %]" selected="selected">[% branchloo.branchname | html %]</option>
125
                                <option value="[% library.branchcode | html %]" selected="selected">[% library.branchname | html %]</option>
126
                            [% ELSE %]
126
                            [% ELSE %]
127
                            <option value="[% branchloo.branchcode | html %]">[% branchloo.branchname | html %]</option>
127
                                <option value="[% library.branchcode | html %]" >[% library.branchname | html %]</option>
128
                            [% END %]
128
                            [% END %]
129
                        [% END %]
129
                        [% END %]
130
                    </select>
130
                    </select>
(-)a/reports/cash_register_stats.pl (-7 / +8 lines)
Lines 39-49 my ($template, $borrowernumber, $cookie) = get_template_and_user({ Link Here
39
    flagsrequired => {reports => '*'},
39
    flagsrequired => {reports => '*'},
40
});
40
});
41
41
42
my $do_it            = $input->param('do_it');
42
my $do_it              = $input->param('do_it');
43
my $output           = $input->param("output");
43
my $output             = $input->param("output");
44
my $basename         = $input->param("basename");
44
my $basename           = $input->param("basename");
45
my $transaction_type = $input->param("transaction_type") || 'ACT';
45
my $transaction_type   = $input->param("transaction_type") || 'ACT';
46
my $manager_branchcode       = $input->param("branch") || C4::Context->userenv->{'branch'};
46
my $branch             = $input->param("branch");
47
my $manager_branchcode = $input->param("branch") || C4::Context->userenv->{'branch'};
48
47
49
48
$template->param(
50
$template->param(
49
    do_it => $do_it,
51
    do_it => $do_it,
Lines 196-202 $template->param( Link Here
196
    beginDate        => $fromDate,
198
    beginDate        => $fromDate,
197
    endDate          => $toDate,
199
    endDate          => $toDate,
198
    transaction_type => $transaction_type,
200
    transaction_type => $transaction_type,
199
    branchloop       => Koha::Libraries->search({}, { order_by => ['branchname'] })->unblessed,
201
    selected_library => $branch,
200
    debit_types      => \@debit_types,
202
    debit_types      => \@debit_types,
201
    credit_types     => \@credit_types,
203
    credit_types     => \@credit_types,
202
    registerid       => $registerid,
204
    registerid       => $registerid,
203
- 

Return to bug 34829