From cb9c9dbba7b633b963d0bbd8caaaa4dabc9f3943 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. Signed-off-by: Nick Clemens --- members/paycollect.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/members/paycollect.pl b/members/paycollect.pl index 7fb55737e7..425a96c36e 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' ) { @@ -207,6 +209,7 @@ if ( $total_paid and $total_paid ne '0.00' ) { { amount => $total_paid, library_id => $library_id, + lines => \@selected_accountlines, note => $note, payment_type => $payment_type, interface => C4::Context->interface, -- 2.11.0