[OPEN-ILS-GENERAL] Web Client Print Templates - "You Saved" Calculator

John Amundson jamundson at cwmars.org
Tue Feb 13 15:29:09 EST 2018


Hi,

We are preparing for our move to the web client and are currently going
through and updating print templates. For the Checkout, Items Out, and
Renew templates, many of our libraries print "You saved $x.yz by borrowing
from your local library." The price of the items out would be added
together and displayed at the end of the receipt with the above text.

We did this by adding the following code to the line item section of the
template:
%price% %price% <span style="display: none;" sum="sum1">%price%</span>
and the following in the footer, where the sum is displayed:
<span sumout="sum1" fixed="2"></span>

I updated the line item portion for the web client with the new variable
name,
<span style="display: none;" sum="sum1"> {{checkout.copy.price}} </span>
but no matter what I do, the total sum is blank.

I cannot figure how to make this work. I was wondering if anyone has gotten
this to work yet and would be willing to share their code. If not, does
anyone have any suggestions I could try?

Thank you,
John

<http://www.cwmars.org>

John Amundson | Library Applications Associate III | CW MARS

jamundson at cwmars.org | 508-755-3323 x322 <%28508%29%20755-3323>

http://www.cwmars.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-general/attachments/20180213/86d4d1bb/attachment-0001.html>


More information about the Open-ils-general mailing list