Lines 295-301
$patstodel = GetBorrowersToExpunge( {expired_before => '2015-01-02', patron_list
Link Here
|
295 |
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by expirationdate and list'); |
295 |
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by expirationdate and list'); |
296 |
$patstodel = GetBorrowersToExpunge( {not_borrowed_since => '2016-01-02', patron_list_id => $list1->patron_list_id() } ); |
296 |
$patstodel = GetBorrowersToExpunge( {not_borrowed_since => '2016-01-02', patron_list_id => $list1->patron_list_id() } ); |
297 |
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by last issue date'); |
297 |
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Guarantor patron not deleted by last issue date'); |
298 |
Koha::Patrons->find($guarantee->{borrowernumber})->set({ guarantorid => '' })->store; |
298 |
Koha::Patrons->find($guarantee->{borrowernumber})->set({ guarantorid => undef })->store; |
299 |
|
299 |
|
300 |
$builder->build({ |
300 |
$builder->build({ |
301 |
source => 'Issue', |
301 |
source => 'Issue', |
302 |
- |
|
|