Holly at Belleville wanted a way to express to patrons how much money they saved by checking out items at the library, instead of purchasing the items themselves.
She found a Cost Savings calculator, through the Koha support community, that provides a total of the replacement charges for the items checked out and displays it on the Check Out receipt. They are using it at Belleville for their Quick Slip and are now sharing it with you.
NOTE! The best way to insert this into your Check Out receipt template is to copy this text and PASTE IT INTO NOTEPAD and THEN copy it from Notepad and paste it into your template. Notepad removes any extraneous characters or formatting.
Most libraries must use their admin login to access the Receipt Template Manager in the Koha Tools (also see the manual). I recommend testing this in the Sandbox FIRST and then applying to your receipts in Production. If you have any questions submit a ticket, send me an email or give me a call. If you don't have anyone on staff able to change the receipt templates we can do it for you. Heidi O.
</p>
<span class="price" style="display: none;"><<items.replacementprice>></span>
<<EndTodaysIssuesList>>
<p style="text-align:center;">Cost of buying these items:<br/>
$<span id="price"></span><br/>
Cost of using the library:<br/>
Priceless!<br/></p>
<script type="text/javascript">
var x = document.getElementsByClassName("price");
var i;
var total = 0;
for (i = 0; i < x.length; i++) {
var cost = parseFloat( x[i].innerHTML );
if ( ! isNaN( cost ) ) {total += cost;}}
document.getElementById("price").innerHTML = total.toFixed(2);
</script>