Bug 24865: Customize the Accountlines Description
authorKyle Hall <kyle@bywatersolutions.com>
Thu, 17 Feb 2022 14:23:28 +0000 (09:23 -0500)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Jul 2022 14:37:35 +0000 (11:37 -0300)
commit10fa2db886c75deffbb2f509624faa656bee161b
tree9a83639deb51a5b1b6ebed78a104a2f9fecb77d9
parentae9c951160e3082660845ee124004f30d2854ca4
Bug 24865: Customize the Accountlines Description

It would be great if we could customize what information was added to the "Description of charges" field when a fine was made so data could be stored even when the item is deleted.

Test Plan:
1) Create an overdue checkout that will get a fine
2) Run fines.pl
3) Note the description for the fine
4) Delete the fine from the database
5) Apply this patch
6) Run updatedatabase.pl
7) Restart all the things!
8) Run fines.pl
9) Note the description of the fine is unchanged
10) Delete the fine again
11) Browse to Slips & Notices
12) Edit the new notice OVERDUE_FINE_DESC
    You will have access to the objects checkout, item, and borrower
13) Run fines.pl
14) Note your new description was used

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Overdues.pm
installer/data/mysql/atomicupdate/bug_24865.pl [new file with mode: 0755]
installer/data/mysql/en/mandatory/sample_notices.yml
tools/letter.pl