[Koha-patches] [PATCH] wr-70205 Rental discount not being respected
Chris Cormack
chrisc at catalyst.net.nz
Fri May 7 01:24:23 CEST 2010
---
C4/Circulation.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 780a7ee..254c2d7 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -2285,7 +2285,7 @@ sub GetIssuingCharges {
my $q2 = "SELECT rentaldiscount FROM borrowers
LEFT JOIN issuingrules ON borrowers.categorycode = issuingrules.categorycode
WHERE borrowers.borrowernumber = ?
- AND issuingrules.itemtype = ?";
+ AND (issuingrules.itemtype = ? OR issuingrules.itemtype = '*')";
my $sth2 = $dbh->prepare($q2);
$sth2->execute( $borrowernumber, $item_type );
if ( my $data2 = $sth2->fetchrow_hashref ) {
--
1.6.3.3
More information about the Koha-patches
mailing list