Bug 9076 - QA Followup - Rename GetBorrowersWhoHaveNotBorrowedSince to GetBorrowersToExpunge
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
76dc0c73ae
commit
280037da0c
|
|
@ -89,7 +89,7 @@ BEGIN {
|
|||
GetBorrowerCategorycode
|
||||
&GetBorrowercategoryList
|
||||
|
||||
&GetBorrowersWhoHaveNotBorrowedSince
|
||||
&GetBorrowersToExpunge
|
||||
&GetBorrowersWhoHaveNeverBorrowed
|
||||
&GetBorrowersWithIssuesHistoryOlderThan
|
||||
|
||||
|
|
@ -1938,9 +1938,9 @@ WHERE roadtypeid=?|;
|
|||
return ($roadtype);
|
||||
}
|
||||
|
||||
=head2 GetBorrowersWhoHaveNotBorrowedSince
|
||||
=head2 GetBorrowersToExpunge
|
||||
|
||||
$borrowers = &GetBorrowersWhoHaveNotBorrowedSince(
|
||||
$borrowers = &GetBorrowersToExpunge(
|
||||
not_borrowered_since => $not_borrowered_since,
|
||||
expired_before => $expired_before,
|
||||
category_code => $category_code,
|
||||
|
|
@ -1951,7 +1951,7 @@ WHERE roadtypeid=?|;
|
|||
|
||||
=cut
|
||||
|
||||
sub GetBorrowersWhoHaveNotBorrowedSince {
|
||||
sub GetBorrowersToExpunge {
|
||||
my $params = shift;
|
||||
|
||||
my $filterdate = $params->{'not_borrowered_since'};
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ sub methods : Test( 1 ) {
|
|||
GetPatronImage
|
||||
PutPatronImage
|
||||
RmPatronImage
|
||||
GetBorrowersWhoHaveNotBorrowedSince
|
||||
GetBorrowersToExpunge
|
||||
GetBorrowersWhoHaveNeverBorrowed
|
||||
GetBorrowersWithIssuesHistoryOlderThan
|
||||
GetBorrowersNamesAndLatestIssue
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ if ( $params->{'step2'} ) {
|
|||
my $membersToDelete;
|
||||
if ( $checkboxes{borrower} ) {
|
||||
$membersToDelete =
|
||||
GetBorrowersWhoHaveNotBorrowedSince( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } );
|
||||
GetBorrowersToExpunge( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } );
|
||||
$totalDel = scalar @$membersToDelete;
|
||||
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ if ( $params->{'step3'} ) {
|
|||
# delete members
|
||||
if ($do_delete) {
|
||||
my $membersToDelete =
|
||||
GetBorrowersWhoHaveNotBorrowedSince( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } );
|
||||
GetBorrowersToExpunge( { not_borrowered_since => $filterdate1, expired_before => $borrower_dateexpiry, category_code => $borrower_categorycode } );
|
||||
$totalDel = scalar(@$membersToDelete);
|
||||
$radio = $params->{'radio'};
|
||||
if ( $radio eq 'trash' ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue