From 61375869b052880f15fffd9dc980a2d73f3074f5 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 28 Apr 2021 14:36:27 +0100 Subject: [PATCH] Bug 27636: (QA follow-up) Restore AutoReconcile assumption This patch restores the behaviour of paycollect which relied on Koha::Account->pay ignoring the value of the AutoReconcile system preference. We now explicitly fall back to selecting all outstanding debit lines if a selection of lines is not passed into the controller. --- members/paycollect.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/members/paycollect.pl b/members/paycollect.pl index 7fb55737e7..9f6db524b3 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -137,6 +137,8 @@ if ( $selected_accts ) { } ); $total_due = $sum->_resultset->first->get_column('total_amountoutstanding'); +} else { + @selected_accountlines = $account->outstanding_debits; } if ( $total_paid and $total_paid ne '0.00' ) { -- 2.20.1