https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15283

--- Comment #21 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 208975
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208975&action=edit
Bug 15283: Switch default ISSUEQSLIP notice to TT

Convert the default ISSUEQSLIP (issue quick slip) notice from the
historical <<table.column>> / <checkedout> syntax to Template Toolkit.

C4::Members::IssueSlip already passes the checkouts of the day to
quick slips as the 'issues' loop, which is available to Template Toolkit
notices as 'checkouts', and the patron is available as 'borrower', so
no code changes are needed. Due dates are displayed with the time, as
they were with the historical syntax.

A test renders the notice that ships in sample_notices.yml for a patron
with a checkout from today, and one from yesterday that must not be shown.

To test:
1. Apply this patch
2. Go to Tools > Notices and slips and edit the Issue quick slip notice
   (ISSUEQSLIP). View the default template, use "Copy to template" and
   save (a new installation has this notice by default)
3. Check out an item to a patron and print a quick slip
4. Confirm the library, the patron name and card number, today's date and
   the title, barcode and due date of today's checkouts are all displayed
5. Run $ prove t/db_dependent/Members/IssueSlip.t

Rescued-by: Martin Renvoize <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to