Lines 68-74
my $quote = GetDailyQuote(); # other options are to pass in an exact quote id
Link Here
|
68 |
|
68 |
|
69 |
# For dashboard |
69 |
# For dashboard |
70 |
my $checkouts = Koha::Checkouts->search({ borrowernumber => $borrowernumber })->count; |
70 |
my $checkouts = Koha::Checkouts->search({ borrowernumber => $borrowernumber })->count; |
71 |
my ( $overdues_count, $overdues ) = checkoverdues($borrowernumber); |
71 |
my $overdues = checkoverdues($borrowernumber); |
|
|
72 |
my $overdues_count = $overdues ? scalar(@$overdues) : 0; |
72 |
my $holds_pending = Koha::Holds->search({ borrowernumber => $borrowernumber, found => undef })->count; |
73 |
my $holds_pending = Koha::Holds->search({ borrowernumber => $borrowernumber, found => undef })->count; |
73 |
my $holds_waiting = Koha::Holds->search({ borrowernumber => $borrowernumber })->waiting->count; |
74 |
my $holds_waiting = Koha::Holds->search({ borrowernumber => $borrowernumber })->waiting->count; |
74 |
my ( $total , $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); |
75 |
my ( $total , $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); |
75 |
- |
|
|