@@ -, +, @@ --- members/paycollect.pl | 3 +++ 1 file changed, 3 insertions(+) --- a/members/paycollect.pl +++ a/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, --