Bug 20120: (QA follow-up) display correct amount in redirect
authorNick Clemens <nick@bywatersolutions.com>
Fri, 8 Jun 2018 12:03:01 +0000 (12:03 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 8 Jun 2018 12:03:01 +0000 (12:03 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

members/pay.pl

index 3ef1200..53a8f37 100755 (executable)
@@ -98,7 +98,7 @@ if ($writeoff_all) {
     if ( $amount > $accountline->amountoutstanding ) {
         print $input->redirect( "/cgi-bin/koha/members/paycollect.pl?"
               . "borrowernumber=$borrowernumber"
-              . "&amount=$amount"
+              . "&amount=" . $accountline->amount
               . "&amountoutstanding=" . $accountline->amountoutstanding
               . "&accounttype=" . $accountline->accounttype
               . "&accountlines_id=" . $accountlines_id