Bugzilla – Attachment 178884 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: Display note of the pay.tt when it exists
Bug-23674-Display-note-of-the-paytt-when-it-exists.patch (text/plain), 3.57 KB, created by
Lucas Gass (lukeg)
on 2025-02-28 22:53:54 UTC
(
hide
)
Description:
Bug 23674: Display note of the pay.tt when it exists
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-02-28 22:53:54 UTC
Size:
3.57 KB
patch
obsolete
>From 206f65852793c6d03a7468ad930fc87a1d50db2a Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 28 Feb 2025 22:53:21 +0000 >Subject: [PATCH] Bug 23674: Display note of the pay.tt when it exists > >--- > .../prog/en/modules/members/pay.tt | 20 +++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >index 3d8641ff1cd..4b6cf0d734f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt >@@ -169,10 +169,17 @@ > [% END %] > </td> > <td class="actions"> >- <a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]"><i class="fa fa-plus"></i> Add note</a> >- <span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" style="display:none" >- ><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a >- ></span> >+ [% IF line.note %] >+ <a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]" style="display:none;"><i class="fa fa-plus"></i> Add note</a> >+ <span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" >+ ><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="[% line.note | html %]" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a >+ ></span> >+ [% ELSE %] >+ <a href="#" class="add-note" data-accountlines_id="[% line.accountlines_id | html %]"><i class="fa fa-plus"></i> Add note</a> >+ <span class="payment_note" id="payment_note_[% line.accountlines_id | html %]" style="display:none" >+ ><input type="text" size="10" name="payment_note_[% line.accountlines_id | html %]" value="" /> <a href="#" class="cancel-note"><i class="fa fa-times"></i></a >+ ></span> >+ [% END %] > </td> > <td class="debit" style="text-align: right;">[% line.amount | $Price %]</td> > <td class="debit" style="text-align: right;">[% line.amountoutstanding | $Price %]</td> >@@ -275,8 +282,9 @@ > }); > $(".cancel-note").on("click", function(e){ > e.preventDefault(); >- $(".payment_note").hide().find("input").val(""); >- $(".add-note").show(); >+ this_td = $(this).closest('td.actions'); >+ this_td.find(".payment_note").hide().find("input").val(""); >+ this_td.find(".add-note").show(); > }); > > var table_settings = [% TablesSettings.GetTableSettings('members', 'pay', 'pay-fines-table', 'json') | $raw %]; >-- >2.39.5
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