From 406dbcd39a10d9fd4989eb7ae66a78cdbfc5a670 Mon Sep 17 00:00:00 2001 From: Jesse Weaver Date: Fri, 25 Jul 2008 11:51:34 -0500 Subject: [PATCH] kohabug 2379 When a borrower is added manually in Koha... This checks that the enrolmentfee for a category both exists, and is greater than 0, avoiding a spurious charge. Signed-off-by: Joshua Ferraro --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index d1546d9a46..70a85c3543 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -771,7 +771,7 @@ sub AddMember { $sth = $dbh->prepare("SELECT enrolmentfee FROM categories WHERE categorycode=?"); $sth->execute($data{'categorycode'}); my ($enrolmentfee) = $sth->fetchrow; - if ($enrolmentfee) { + if ($enrolmentfee && $enrolmentfee > 0) { # insert fee in patron debts manualinvoice($data{'borrowernumber'}, '', '', 'A', $enrolmentfee); } -- 2.39.5