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.
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.
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>