When a patron had overdues on items from different branches
he received from each corresponding branch a notice claiming
the complete list of these items.
Signed-off-by: sbujam <sbujam@users.noreply.github.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
AND b.branchcode = items.homebranch
AND biblio.biblionumber = biblioitems.biblionumber
AND issues.borrowernumber = ?
+ AND issues.branchcode = ?
AND TO_DAYS($date)-TO_DAYS(issues.date_due) >= 0
END_SQL
) unless $test_mode;
$verbose and warn "debarring $borr\n";
}
- my @params = ($borrowernumber);
+ my @params = ($borrowernumber,$branchcode);
$verbose and warn "STH2 PARAMS: borrowernumber = $borrowernumber";
$sth2->execute(@params);