Bug 26536: Assignment fix

Whilst working on this bug I found a weird inconsistent variable assignment line

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
JD: Amended commit message: fix bug number
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2020-10-02 16:17:39 +01:00 committed by Andrew Fuerste-Henry
parent 52adb8a354
commit 6d302b741c
1 changed files with 2 additions and 1 deletions

View File

@ -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};