Bugzilla – Attachment 177227 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.94 KB, created by
Martin Renvoize (ashimema)
on 2025-01-28 09:36:29 UTC
(
hide
)
Description:
Bug 23674: Add ability to add a note to issue payout
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-01-28 09:36:29 UTC
Size:
2.94 KB
patch
obsolete
>From acb2184a81600a3a44b5b520372115444377972a 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. > >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 17b82ff3b8c..565f9085d6b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt >@@ -282,7 +282,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 e3b85e7e774..ee6ab273b64 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.48.1
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
|
177225
|
177226
|
177227
|
177228
|
177229
|
177230
|
177231
|
177232
|
177233
|
178059
|
178060
|
178061
|
178062
|
178063
|
178064
|
178065
|
178066
|
178067
|
178791
|
178792
|
178793
|
178794
|
178795
|
178796
|
178797
|
178798
|
178799
|
178884
|
178885