Bug 36717

Summary: Merge "Patrons (custom slip)" and "Patrons (custom message)" in Notices
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: ToolsAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: clackman
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36887
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 29393, 32986    
Bug Blocks:    

Description Caroline Cyr La Rose 2024-04-29 15:46:33 UTC
With the introduction of custom email messages in Bug 29393, we discussed (https://chat.koha-community.org/koha-community/pl/ixoy58im47dhpr4gmwtn9sdbjw) the opportunity to merge the "Patrons (custom slip)" notice type introduced in Bug 32986 and the new "Patrons (custom message)" notice type.

The "custom slips" would be notices with the print message transport type, and the "custom messages" (email messages) would be notices with the email message transport type.

To get there:
1. Go to Tools > Notices and slips
2. Click New notice
--> Notice there is a category "Patrons (custom slip)" and (after bug 29393) "Patrons (custom message)"

Create and use a custom slip
3. Click "Patrons (custom slip)"
4. Enter a code and a name (e.g. TESTSLIP, Test slip)
5. Click the "Print" tab
6. Enter content in the "Message subject" and "Message body" fields
7. Click "Save"
8. Go to a patron's account
9. Click "Print"
--> There should be an option to "Print test slip" (or whatever name you gave it)

Create and use a custom message
10. Go back to Tools > Notices and slips > New notice
11. Click "Patrons (custom message)"
12. Enter a code and a name (e.g. TESTMESSAGE, Test message)
13. Click the "Email" tab
14. Enter content in the "Message subject" and "Message body" fields
15. Click "Save"
16. Go to a patron's account
17. Make sure the patron has an email address
18. Click "Add message"
19. In "Add message for" choose Email
--> In "Patron notice" there should be "Test message" (or whatever name you gave it)

The proposition was to merge the two notice types and only show the ones with the "Print" message transport type filled in the "Print" menu, and only show the ones with the "Email" message transport type filled in the "Add message" menu.