Bug 36809

Summary: DRY out notice and slip printing
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: NoticesAssignee: Martin Renvoize (ashimema) <martin.renvoize>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, Laura.escamilla, lucas
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 32344, 32345, 32346, 33260, 36808, 38078, 31713, 35285    
Bug Blocks:    

Description Martin Renvoize (ashimema) 2024-05-08 07:03:02 UTC
We have a plethora of slip and notice printing controllers and templates.

This makes it difficult to improve the notices tools and not miss area's.. we should really move to one or two definitive scripts and templates for printing slips and notices and remove all the duplicate unmaintained code.
Comment 1 Martin Renvoize (ashimema) 2024-05-08 07:12:18 UTC
* batch/print-notices.tt
* pos/printreceipt.tt
* serials/routing-preview-slip.tt
* members/printnotice.tt
* members/printinvoice.tt
* members/printfeercpt.tt
* members/moremember-print.tt
* circ/printslip.tt
* members/printslip.tt


I'm sure I've missed some.. and that's just templates.
Comment 2 Martin Renvoize (ashimema) 2024-10-03 14:51:19 UTC
Add tools/printnotice.pl to the list with it being introduced in bug 33260
Comment 3 Martin Renvoize (ashimema) 2024-10-03 14:58:26 UTC
Should 'print slip', 'print notice' and 'print bulk' be distinct maybe.. and what about when printing a non-print type message.. that's a different case again.

I.e. we need to answer when what styling and formatting should apply