Bug 7266: flags debarred, suspended, gonenoaddress in overdue
This patch makes these flags functionnal. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
parent
5fde469429
commit
74984f5cf3
1 changed files with 9 additions and 1 deletions
|
@ -274,7 +274,15 @@ if ($noreport) {
|
|||
$strsth.=" AND biblioitems.itemtype = '" . $itemtypefilter . "' ";
|
||||
}
|
||||
}
|
||||
$strsth.=" AND borrowers.flags = '" . $borflagsfilter . "' " if $borflagsfilter;
|
||||
if ( $borflagsfilter eq 'gonenoaddress' ) {
|
||||
$strsth .= " AND borrowers.gonenoaddress <> 0";
|
||||
}
|
||||
elsif ( $borflagsfilter eq 'debarred' ) {
|
||||
$strsth .= " AND borrowers.debarred >= CURDATE()" ;
|
||||
}
|
||||
elsif ( $borflagsfilter eq 'lost') {
|
||||
$strsth .= " AND borrowers.lost <> 0";
|
||||
}
|
||||
$strsth.=" AND borrowers.branchcode = '" . $branchfilter . "' " if $branchfilter;
|
||||
$strsth.=" AND date_due < '" . $datedueto . "' " if $datedueto;
|
||||
$strsth.=" AND date_due > '" . $dateduefrom . "' " if $dateduefrom;
|
||||
|
|
Loading…
Reference in a new issue