Bug 41914

Summary: Add patron category description to account payment notice template
Product: Koha Reporter: Amit Gupta <amitddng135>
Component: NoticesAssignee: Amit Gupta <amitddng135>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: amit.gupta, katrin.fischer
Version: Main   
Hardware: All   
OS: All   
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
Bug 41914: Add patron category description to account payment notice template

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>