Bug 41914 - Add patron category description to account payment notice template
Summary: Add patron category description to account payment notice template
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Amit Gupta
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-24 07:25 UTC by Amit Gupta
Modified: 2026-02-27 14:26 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Add patron category description to account payment notice template (2.96 KB, patch)
2026-02-24 07:42 UTC, Amit Gupta
Details | Diff | Splinter Review
Bug 41914: Add patron category description to account payment notice template (3.03 KB, patch)
2026-02-27 14:26 UTC, Andrew Fuerste-Henry
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Gupta 2026-02-24 07:25:49 UTC
Add patron category description to account payment notice template

Libraries running a paid membership subscription model require the Patron Category Description (from categories.description) to be displayed in the Account Payment Notice.

Currently, in Koha, the Account Payment notice template does not expose the Patron Category Description variable, preventing libraries from printing membership type information (e.g., Corporate, Individual, Premium, Student) in payment receipts/letters.
Comment 1 Amit Gupta 2026-02-24 07:42:36 UTC
Created attachment 193693 [details] [review]
Add patron category description to account payment  notice template

To Test:
1. Apply the patch
2. Change the notice Account payment and add below

Dear <<borrowers.cardnumber>> <<borrowers.firstname>>

Category: <<categories.description>>

[%- USE Price -%]
A payment of [% credit.amount * -1 | $Price %] has been applied to your account.

This payment affected the following fees:
[%- FOREACH o IN offsets %]
Description: [% o.debit.description %]
Amount paid: [% o.amount * -1 | $Price %]
Amount remaining: [% o.debit.amountoutstanding | $Price %]
[% END %]

3. Save the notice.
4. Turn on the system preference 'AutomaticEmailReceipts to send' and save the preferenes.
5. Go to the patron account and Create the manual invoice and collect the payment.
6. Go to notices tab and click on the message you can find the category description in the messange and receive the mail also.
Comment 2 Andrew Fuerste-Henry 2026-02-27 14:26:05 UTC
Created attachment 194103 [details] [review]
Bug 41914: Add patron category description to account payment notice template

To Test:
1. Apply the patch
2. Change the notice Account payment and add below

Dear <<borrowers.cardnumber>> <<borrowers.firstname>>

Category: <<categories.description>>

[%- USE Price -%]
A payment of [% credit.amount * -1 | $Price %] has been applied to your account.

This payment affected the following fees:
[%- FOREACH o IN offsets %]
Description: [% o.debit.description %]
Amount paid: [% o.amount * -1 | $Price %]
Amount remaining: [% o.debit.amountoutstanding | $Price %]
[% END %]

3. Save the notice.
4. Turn on the system preference 'AutomaticEmailReceipts to send' and save the preferenes.
5. Go to the patron account and Create the manual invoice and collect the payment.
6. Go to notices tab and click on the message you can find the category description in the messange and receive the mail also.

Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>