|
Lines 265-271
if ($noreport) {
Link Here
|
| 265 |
$strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); |
265 |
$strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); |
| 266 |
$strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ; |
266 |
$strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ; |
| 267 |
$strsth.=" AND borrowers.categorycode = '" . $borcatfilter . "' " if $borcatfilter; |
267 |
$strsth.=" AND borrowers.categorycode = '" . $borcatfilter . "' " if $borcatfilter; |
| 268 |
$strsth.=" AND biblioitems.itemtype = '" . $itemtypefilter . "' " if $itemtypefilter; |
268 |
if( $itemtypefilter ){ |
|
|
269 |
if( C4::Context->preference('item-level_itypes') ){ |
| 270 |
$strsth.=" AND items.itype = '" . $itemtypefilter . "' "; |
| 271 |
} else { |
| 272 |
$strsth.=" AND biblioitems.itemtype = '" . $itemtypefilter . "' "; |
| 273 |
} |
| 274 |
} |
| 269 |
$strsth.=" AND borrowers.flags = '" . $borflagsfilter . "' " if $borflagsfilter; |
275 |
$strsth.=" AND borrowers.flags = '" . $borflagsfilter . "' " if $borflagsfilter; |
| 270 |
$strsth.=" AND borrowers.branchcode = '" . $branchfilter . "' " if $branchfilter; |
276 |
$strsth.=" AND borrowers.branchcode = '" . $branchfilter . "' " if $branchfilter; |
| 271 |
$strsth.=" AND date_due < '" . $datedueto . "' " if $datedueto; |
277 |
$strsth.=" AND date_due < '" . $datedueto . "' " if $datedueto; |
| 272 |
- |
|
|