[Bug 41914] New: Add patron category description to account payment notice template
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Bug ID: 41914 Summary: Add patron category description to account payment notice template Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: amitddng135@gmail.com QA Contact: testopia@bugs.koha-community.org 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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |amitddng135@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 --- Comment #1 from Amit Gupta <amitddng135@gmail.com> --- Created attachment 193693 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193693&action=edit 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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amit.gupta@informaticsgloba | |l.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Andrew Fuerste-Henry <andrew@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 --- Comment #2 from Andrew Fuerste-Henry <andrew@bywatersolutions.com> --- Created attachment 194103 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194103&action=edit 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> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #193693|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #194103|0 |1 is obsolete| | --- Comment #3 from Amit Gupta <amitddng135@gmail.com> --- Created attachment 202314 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202314&action=edit 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. --------------------------------------- Removed conflict with master branch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Amit Gupta <amitddng135@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emily.lamancusa@montgomeryc | |ountymd.gov, | |martin.renvoize@openfifth.c | |o.uk --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Since we are moving towards deprecating the old "hungry alligators" syntax, I think it would make more sense to do this with TT instead and not keep adding to the old code. This might already be possible or just require to pass the borrowers object and use the existing methods. Adding Martin and Emily for an additional opinion. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41914 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|Signed Off |RESOLVED --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I just verified in 24.11 this already works for the notice ACCOUNT_PAYMENT: [% borrower.firstname %] [% borrower.surname %] ([% borrower.category.description %]) I think this provides exactly what the patch would for << >> syntax, so will mark as "WORKSFORME". -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org