Bug 23806: FinePaymentAutoPopup does not trigger pop-up for writeoff by "Write off...
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 11 Oct 2019 16:07:14 +0000 (09:07 -0700)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 7 Nov 2019 13:26:29 +0000 (13:26 +0000)
Test Plan:
1) Enable reciept popups for payments and writeoffs
2) Test the "Write off" button, no popup
3) Apply this patch
4) Restart all the things!
5) Test again, you should get the popup!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Sean McGarvey <seanm@pascolibraries.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

members/pay.pl

index 32c8c36..5094a5f 100755 (executable)
@@ -112,7 +112,7 @@ elsif ( $input->param('confirm_writeoff') ) {
               . "&error_over=1" );
 
     } else {
-        Koha::Account->new( { patron_id => $borrowernumber } )->pay(
+        $payment_id = Koha::Account->new( { patron_id => $borrowernumber } )->pay(
             {
                 amount     => $amount,
                 lines      => [ scalar Koha::Account::Lines->find($accountlines_id) ],