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>
This commit is contained in:
Martin Renvoize 2020-10-02 16:17:39 +01:00 committed by Jonathan Druart
parent f87f64c41f
commit 308f52d764
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 => $cash_register_id
}
);
$payment_id = $pay_result->{payment_id};
}
$payment_id = $pay_result->{payment_id};