Summary: | Expand TT access for CHECKOUT notice | ||
---|---|---|---|
Product: | Koha | Reporter: | Caroline Cyr La Rose <caroline.cyr-la-rose> |
Component: | Notices | Assignee: | Bugs List <koha-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | anni.maki-mantila, emily.lamancusa, lucas, philippe.blouin |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29100 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Caroline Cyr La Rose
2022-09-29 16:48:45 UTC
As for the use case for this, I had a library who wanted to use the CHECKOUT emails instead of printing the ISSUESLIP. They also wanted the value of items like it is possible to get in the ISSUESLIP https://wiki.koha-community.org/wiki/Notices_and_Slips_Library#Add_total_value_of_items_on_issue_slip Adding the price to totalValue doesn't work when using four dashes. In the end, it only shows one of the prices. This is what I tried (among many things) [%- USE KohaDates -%] [%- USE Price -%] [% totalValue = 0 %] <p>Hello [% borrower.firstname %] [% borrower.surname %] </p> <p>You have checked out the following items:</p> ---- [% totalValue = item.price + totalValue %] <p>[% biblio.title %]<br /> Barcode: [% item.barcode %]<br /> Due date: [% checkout.date_due | $KohaDates %]<br/> Value: [% item.price %]</p> ---- <p>You saved [% totalValue | $Price %] by using the library today!</p> <p>The [% branch.branchname %] team</p> And this is the result Hello Henry Acevedo You have checked out the following items: 1492 Barcode: 000687 Due date: 10/13/2022 Value: 12.95 A Book of Scoundrels Barcode: 000629 Due date: 10/13/2022 Value: 18.95 You saved 18.95 by using the library today! The Centerville team As you can see, it doesn't add the two values. |