From 1398d9b6a3b303b9183fd2e3ec97d53f09ee62ab Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 24 Jun 2024 17:31:58 +0000 Subject: [PATCH] Bug 23674: Add ability to add a note to pay individual fine from paycollect.tt --- .../intranet-tmpl/prog/en/modules/members/paycollect.tt | 4 ++++ members/paycollect.pl | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt index 2f70b35ebb..f5b8bcf74a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt @@ -186,6 +186,10 @@ +
  • + + +
  • 0.00 diff --git a/members/paycollect.pl b/members/paycollect.pl index ddea7cb4cd..44b3e83133 100755 --- a/members/paycollect.pl +++ b/members/paycollect.pl @@ -70,6 +70,7 @@ my $total_due = $account->outstanding_debits->total_outstanding; my $total_paid = $input->param('paid'); my $total_collected = $input->param('collected'); +my $note = $input->param('pay_individual_note'); my $selected_lines = $input->param('selected'); # comes from pay.pl my $pay_individual = $input->param('pay_individual'); @@ -100,6 +101,7 @@ if ( $pay_individual || $writeoff_individual ) { itemnumber => $itemnumber, individual_description => $description, payment_note => $payment_note, + note => $note, ); } elsif ($selected_lines) { $total_due = $input->param('amt'); @@ -165,7 +167,8 @@ if ( $total_paid and $total_paid ne '0.00' ) { note => $payment_note, interface => C4::Context->interface, payment_type => $payment_type, - cash_register => $cash_register_id + cash_register => $cash_register_id, + note => $note, } ); $payment_id = $pay_result->{payment_id}; -- 2.39.2