[Koha-bugs] [Bug 31656] Expand TT access for CHECKOUT notice

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 29 19:02:06 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31656

--- Comment #1 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list