Bugzilla – Attachment 168178 Details for
Bug 23674
Allowing notes on all entries in patron Transactions table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23674: Add ability to add a note to issue payout
Bug-23674-Add-ability-to-add-a-note-to-issue-payou.patch (text/plain), 2.82 KB, created by
Sam Lau
on 2024-06-26 19:38:18 UTC
(
hide
)
Description:
Bug 23674: Add ability to add a note to issue payout
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2024-06-26 19:38:18 UTC
Size:
2.82 KB
patch
obsolete
>From 3de54a8a56379afa13db1ba9f33a4059c396858e Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Wed, 26 Jun 2024 19:34:37 +0000 >Subject: [PATCH] Bug 23674: Add ability to add a note to issue payout > >To test: >1) Apply patch, restart_all >2) From patron accounting page -> Create manual credit. Put in some amount and press add credit. >3) Under the actions column, select 'Issue Payout' >4) You can now enter a note. Type something in and press confirm. >5) Ensure the note shows up in the note column. >--- > .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 5 ++++- > members/boraccount.pl | 6 ++++-- > 2 files changed, 8 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >index de8767b4ac..ae52b17d71 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -283,7 +283,10 @@ > </select> > </li> > [% END %] >- >+ <li> >+ <label for="payout_note">Note: </label> >+ <input type="text" name="payout_note" id="payout_note"> >+ </li> > </ol> > </fieldset> <!-- /.rows --> > </div> <!-- /.modal-body --> >diff --git a/members/boraccount.pl b/members/boraccount.pl >index 23d2cc574c..ff5ff65047 100755 >--- a/members/boraccount.pl >+++ b/members/boraccount.pl >@@ -88,6 +88,7 @@ if ( $op eq 'cud-payout' ) { > my $payment = Koha::Account::Lines->find($payment_id); > my $amount = scalar $input->param('amount'); > my $payout_type = scalar $input->param('payout_type'); >+ my $note = scalar $input->param('payout_note'); > if ( $payment_id eq "" ) { > $schema->txn_do( > sub { >@@ -98,7 +99,7 @@ if ( $op eq 'cud-payout' ) { > staff_id => $logged_in_user->id, > cash_register => $registerid, > interface => 'intranet', >- amount => $amount >+ amount => $amount, > } > ); > } >@@ -114,7 +115,8 @@ if ( $op eq 'cud-payout' ) { > staff_id => $logged_in_user->id, > cash_register => $registerid, > interface => 'intranet', >- amount => $amount >+ amount => $amount, >+ note => $note > } > ); > } >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23674
:
168035
|
168036
|
168174
|
168177
|
168178
|
168180
|
168213
|
168329
|
168330
|
169782
|
169783
|
169784
|
169785
|
169786
|
169787
|
169788
|
174300
|
174301
|
174302
|
174303
|
174304
|
174305
|
174306
|
174307
|
174308