Lines 41-57
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
41 |
|
41 |
|
42 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
42 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
43 |
my $account = $patron->account; |
43 |
my $account = $patron->account; |
44 |
my $total = $account->balance; |
44 |
my $accountlines = $account->lines->search({ amountoutstanding => { '>=' => 0 }}); |
45 |
my $accountlines = $account->lines; |
45 |
my $total_outstanding = $accountlines->total_outstanding; |
|
|
46 |
my $outstanding_credits = $account->outstanding_credits; |
46 |
|
47 |
|
47 |
$template->param( |
48 |
$template->param( |
48 |
ACCOUNT_LINES => $accountlines, |
49 |
ACCOUNT_LINES => $accountlines, |
49 |
total => $total, |
50 |
total => $total_outstanding, |
50 |
accountview => 1, |
51 |
outstanding_credits => $outstanding_credits, |
51 |
message => scalar $query->param('message') || q{}, |
52 |
accountview => 1, |
52 |
message_value => scalar $query->param('message_value') || q{}, |
53 |
message => scalar $query->param('message') || q{}, |
53 |
payment => scalar $query->param('payment') || q{}, |
54 |
message_value => scalar $query->param('message_value') || q{}, |
54 |
payment_error => scalar $query->param('payment-error') || q{}, |
55 |
payment => scalar $query->param('payment') || q{}, |
|
|
56 |
payment_error => scalar $query->param('payment-error') || q{}, |
55 |
); |
57 |
); |
56 |
|
58 |
|
57 |
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins"); |
59 |
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins"); |
58 |
- |
|
|