[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/circ circulation.pl [dev_week]

From: Kyle Hall
Subject: [Koha-cvs] koha/circ circulation.pl [dev_week]
Date: Fri, 01 Feb 2008 16:56:04 +0000

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.


Index: circulation.pl
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision
retrieving revision
diff -u -b -r1. -r1.
--- circulation.pl      1 Nov 2007 13:43:26 -0000
+++ circulation.pl      1 Feb 2008 16:56:04 -0000
@@ -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("*", $branch);
 while (my $data = $issueqty_sth->fetchrow_hashref()) {
     # subtract how many of each this borrower has
        $data->{'count'} = $issued_itemtypes_count->{$data->{'description'}};

reply via email to

[Prev in Thread] Current Thread [Next in Thread]