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 <jmf@liblime.com>
This commit is contained in:
parent
f6a3f83ca2
commit
406dbcd39a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue