Lines 35-41
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
35 |
type => "intranet", |
35 |
type => "intranet", |
36 |
authnotrequired => 0, |
36 |
authnotrequired => 0, |
37 |
flagsrequired => { |
37 |
flagsrequired => { |
38 |
borrowers => 1, |
38 |
borrowers => 'edit_borrowers', |
39 |
updatecharges => 'remaining_permissions' |
39 |
updatecharges => 'remaining_permissions' |
40 |
}, |
40 |
}, |
41 |
} |
41 |
} |
Lines 49-60
if ($accountline) {
Link Here
|
49 |
my $type = $accountline->amount < 0 ? 'credit' : 'debit'; |
49 |
my $type = $accountline->amount < 0 ? 'credit' : 'debit'; |
50 |
my $column = $type eq 'credit' ? 'credit_id' : 'debit_id'; |
50 |
my $column = $type eq 'credit' ? 'credit_id' : 'debit_id'; |
51 |
|
51 |
|
52 |
my @account_offsets = Koha::Account::Offsets->search( { $column => $accountlines_id } ); |
52 |
my $account_offsets = Koha::Account::Offsets->search( |
|
|
53 |
{ $column => $accountlines_id }, |
54 |
{ order_by => 'created_on' }, |
55 |
); |
53 |
|
56 |
|
54 |
$template->param( |
57 |
$template->param( |
55 |
type => $type, |
58 |
type => $type, |
56 |
accountline => $accountline, |
59 |
accountline => $accountline, |
57 |
account_offsets => \@account_offsets, |
60 |
account_offsets => $account_offsets, |
58 |
|
61 |
|
59 |
finesview => 1, |
62 |
finesview => 1, |
60 |
); |
63 |
); |
61 |
- |
|
|