[Koha-cvs] koha/circ circulation.pl [dev_week]
Kyle Hall
kyle.m.hall at gmail.com
Fri Feb 1 17:56:04 CET 2008
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Kyle Hall <kylemhall> 08/02/01 16:56:04
Modified files:
circ : circulation.pl
Log message:
Issueing rules were not working on a per branch basis, all rules were being pulled from the first branch, alphabetically.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=dev_week&r1=1.81.2.14.2.24&r2=1.81.2.14.2.25
Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.81.2.14.2.24
retrieving revision 1.81.2.14.2.25
diff -u -b -r1.81.2.14.2.24 -r1.81.2.14.2.25
--- circulation.pl 1 Nov 2007 13:43:26 -0000 1.81.2.14.2.24
+++ circulation.pl 1 Feb 2008 16:56:04 -0000 1.81.2.14.2.25
@@ -332,10 +332,10 @@
my $issueqty_sth = $dbh->prepare("
SELECT itemtypes.description AS description,issuingrules.itemtype,maxissueqty FROM issuingrules
LEFT JOIN itemtypes ON (itemtypes.itemtype=issuingrules.itemtype)
- WHERE categorycode=?
+ WHERE categorycode=? AND branchcode=?
");
my @issued_itemtypes_count;
-$issueqty_sth->execute("*");
+$issueqty_sth->execute("*", $branch);
while (my $data = $issueqty_sth->fetchrow_hashref()) {
# subtract how many of each this borrower has
$data->{'count'} = $issued_itemtypes_count->{$data->{'description'}};
More information about the Koha-cvs
mailing list