From 6d302b741c43c4f9d3df52604399bb2a5293b66d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 2 Oct 2020 16:17:39 +0100 Subject: [PATCH] Bug 26536: Assignment fix Whilst working on this bug I found a weird inconsistent variable assignment line Signed-off-by: Sally Signed-off-by: Katrin Fischer JD: Amended commit message: fix bug number Signed-off-by: Jonathan Druart Signed-off-by: Andrew Fuerste-Henry --- members/paycollect.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/paycollect.pl b/members/paycollect.pl index 9135396056..cef9a70612 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -229,7 +229,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { } else { my $note = $input->param('selected_accts_notes'); - $pay_result = $payment_id = $account->pay( + $pay_result = $account->pay( { amount => $total_paid, library_id => $library_id, @@ -240,6 +240,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { cash_register => $registerid } ); + $payment_id = $pay_result->{payment_id}; } $payment_id = $pay_result->{payment_id}; -- 2.39.5