fixing choosing wrong var for max amount issues number

This commit is contained in:
bob_lyon 2006-06-07 02:07:10 +00:00
parent ed8eee0aa6
commit ab62ac7ab6

View file

@ -798,7 +798,7 @@ sub canbookbeissued {
# DEBTS
my $amount = checkaccount($env,$borrower->{'borrowernumber'}, $dbh,$duedate);
if($C4::Context->preference("IssuingInProcess")){
my $amountlimit = $C4::Context->preference("maxoutstanding");
my $amountlimit = $C4::Context->preference("noissuescharge");
if ($amount > $amountlimit && !$inprocess) {
$issuingimpossible{DEBT} = sprintf("%.2f",$amount);
} elsif ($amount <= $amountlimit && !$inprocess) {