Bug 37211 - All notes in the patron Transactions table should be editable
Summary: All notes in the patron Transactions table should be editable
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Sam Lau
QA Contact: Testopia
URL:
Keywords:
Depends on: 23674
Blocks:
  Show dependency treegraph
 
Reported: 2024-06-27 14:44 UTC by Lucas Gass (lukeg)
Modified: 2024-11-08 21:42 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 37211: Make notes in patron transactions table editable (6.60 KB, patch)
2024-06-27 19:23 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 37211: Add new subpermission in updatecharge 'edit_notes' (2.92 KB, patch)
2024-06-27 19:23 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 37211: Make notes in patron transactions table editable (6.61 KB, patch)
2024-08-02 15:21 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 37211: Add new subpermission in updatecharge 'edit_notes' (2.92 KB, patch)
2024-08-02 15:21 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 37211: Make notes in patron transactions table editable (6.66 KB, patch)
2024-08-09 20:04 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 37211: Add new subpermission in updatecharge 'edit_notes' (2.97 KB, patch)
2024-08-09 20:04 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2024-06-27 14:44:24 UTC
Bug 23674 will add the ability to have a note on the transaction table in a patron account. This enhancement will make each of those notes editable after they have been submitted.
Comment 1 Sam Lau 2024-06-27 19:23:16 UTC
Created attachment 168211 [details] [review]
Bug 37211: Make notes in patron transactions table editable

This patch adds an edit button to each notes field in an accountline entry. This feature is controlled by a new staff permision under the 'updatecharges' permision called 'edit_notes'.

To test:
1) Apply patch, updatedatabase, restart_all
2) In the staff interface, give your logged in user superlibrarian permissions.
3) Visit a patron's accounting tab. Create a manual invoice for some amount and enter a note.
4) Create another manual invoice, this time do not enter a note.
5) Click on the transactions tab to view the table.
6) See that the notes column now has edit buttons.
7) Attempt to edit the note that is not blank.
8) A modal should pop up prompting you to edit your note. The previous note should be in the text box.
9) Edit this note and press confirm.
10) Ensure the note was updated and the updated column was filled with the correct time.
11) Now attempt to edit the blank note.
12) Again, you should see a modal but no prefilled message. Update this note and ensure correct changes.
13) Go back to the permissions for your logged in user and remove the 'edit_notes' subpermission under the 'updatecharges' permissions.
14) Go back to the patron's accounting tab. This time, there should not be any edit buttons in the notes column.
Comment 2 Sam Lau 2024-06-27 19:23:18 UTC
Created attachment 168212 [details] [review]
Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Comment 3 Roman Dolny 2024-07-29 14:34:26 UTC
Applying: Bug 37211: Make notes in patron transactions table editable
error: sha1 information is lacking or useless (koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt).
error: could not build fake ancestor
Patch failed at 0001 Bug 37211: Make notes in patron transactions table editable
Comment 4 Sam Lau 2024-08-02 15:21:52 UTC
Created attachment 170002 [details] [review]
Bug 37211: Make notes in patron transactions table editable

This patch adds an edit button to each notes field in an accountline entry. This feature is controlled by a new staff permision under the 'updatecharges' permision called 'edit_notes'.

To test:
1) Apply patch, updatedatabase, restart_all
2) In the staff interface, give your logged in user superlibrarian permissions.
3) Visit a patron's accounting tab. Create a manual invoice for some amount and enter a note.
4) Create another manual invoice, this time do not enter a note.
5) Click on the transactions tab to view the table.
6) See that the notes column now has edit buttons.
7) Attempt to edit the note that is not blank.
8) A modal should pop up prompting you to edit your note. The previous note should be in the text box.
9) Edit this note and press confirm.
10) Ensure the note was updated and the updated column was filled with the correct time.
11) Now attempt to edit the blank note.
12) Again, you should see a modal but no prefilled message. Update this note and ensure correct changes.
13) Go back to the permissions for your logged in user and remove the 'edit_notes' subpermission under the 'updatecharges' permissions.
14) Go back to the patron's accounting tab. This time, there should not be any edit buttons in the notes column.
Comment 5 Sam Lau 2024-08-02 15:21:54 UTC
Created attachment 170003 [details] [review]
Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Comment 6 Eric Garcia 2024-08-05 17:44:11 UTC
Applying: Bug 37211: Add new subpermission in updatecharge 'edit_notes'
error: sha1 information is lacking or useless (installer/data/mysql/mandatory/userpermissions.sql).
error: could not build fake ancestor
Patch failed at 0001 Bug 37211: Add new subpermission in updatecharge 'edit_notes'
Comment 7 Sam Lau 2024-08-05 18:17:26 UTC
(In reply to Eric Garcia from comment #6)
> Applying: Bug 37211: Add new subpermission in updatecharge 'edit_notes'
> error: sha1 information is lacking or useless
> (installer/data/mysql/mandatory/userpermissions.sql).
> error: could not build fake ancestor
> Patch failed at 0001 Bug 37211: Add new subpermission in updatecharge
> 'edit_notes'

I'm not getting this... maybe try a 'git pull'?
Comment 8 Roman Dolny 2024-08-09 20:04:26 UTC
Created attachment 170218 [details] [review]
Bug 37211: Make notes in patron transactions table editable

This patch adds an edit button to each notes field in an accountline entry. This feature is controlled by a new staff permision under the 'updatecharges' permision called 'edit_notes'.

To test:
1) Apply patch, updatedatabase, restart_all
2) In the staff interface, give your logged in user superlibrarian permissions.
3) Visit a patron's accounting tab. Create a manual invoice for some amount and enter a note.
4) Create another manual invoice, this time do not enter a note.
5) Click on the transactions tab to view the table.
6) See that the notes column now has edit buttons.
7) Attempt to edit the note that is not blank.
8) A modal should pop up prompting you to edit your note. The previous note should be in the text box.
9) Edit this note and press confirm.
10) Ensure the note was updated and the updated column was filled with the correct time.
11) Now attempt to edit the blank note.
12) Again, you should see a modal but no prefilled message. Update this note and ensure correct changes.
13) Go back to the permissions for your logged in user and remove the 'edit_notes' subpermission under the 'updatecharges' permissions.
14) Go back to the patron's accounting tab. This time, there should not be any edit buttons in the notes column.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 9 Roman Dolny 2024-08-09 20:04:28 UTC
Created attachment 170219 [details] [review]
Bug 37211: Add new subpermission in updatecharge 'edit_notes'

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>