fixing choosing wrong var for max amount issues number
[koha_fer] / C4 / Circulation / Circ2.pm
index 331b04e..f853df0 100755 (executable)
@@ -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) {