Lines 122-141
if ( $params->{'step3'} ) {
Link Here
|
122 |
my $membersToDelete = |
122 |
my $membersToDelete = |
123 |
GetBorrowersToExpunge( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } ); |
123 |
GetBorrowersToExpunge( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } ); |
124 |
$totalDel = scalar(@$membersToDelete); |
124 |
$totalDel = scalar(@$membersToDelete); |
125 |
$radio = $params->{'radio'}; |
125 |
my $i; |
126 |
if ( $radio eq 'trash' ) { |
126 |
for ( $i = 0 ; $i < $totalDel ; $i++ ) { |
127 |
my $i; |
127 |
MoveMemberToDeleted( $membersToDelete->[$i]->{'borrowernumber'} ); |
128 |
for ( $i = 0 ; $i < $totalDel ; $i++ ) { |
128 |
C4::VirtualShelves::HandleDelBorrower( |
129 |
MoveMemberToDeleted( $membersToDelete->[$i]->{'borrowernumber'} ); |
129 |
$membersToDelete->[$i]->{'borrowernumber'} ); |
130 |
C4::VirtualShelves::HandleDelBorrower( $membersToDelete->[$i]->{'borrowernumber'} ); |
130 |
DelMember( $membersToDelete->[$i]->{'borrowernumber'} ); |
131 |
DelMember( $membersToDelete->[$i]->{'borrowernumber'} ); |
|
|
132 |
} |
133 |
} else { # delete completly. |
134 |
my $i; |
135 |
for ( $i = 0 ; $i < $totalDel ; $i++ ) { |
136 |
C4::VirtualShelves::HandleDelBorrower( $membersToDelete->[$i]->{'borrowernumber'} ); |
137 |
DelMember( $membersToDelete->[$i]->{'borrowernumber'} ); |
138 |
} |
139 |
} |
131 |
} |
140 |
$template->param( |
132 |
$template->param( |
141 |
do_delete => '1', |
133 |
do_delete => '1', |
142 |
- |
|
|