Bug 39042

Summary: Add a template plugin method for calculating patron savings
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lucas Gass (lukeg) 2025-02-05 16:15:26 UTC
It would be handy to have an easy way to calculate user savings, similar to what was done in Bug 31051, that was easy to access in a notice/slip/template. 

We frequently have a request to add this to various notices/slips. This can include:

-Today's savings 
-Year to date, which can be both calendar year or last 365 days
-Lifetime savings 

Maybe something in /Koha/Template/Plugin/ ?