Add Cost Savings to the Patron's Slip

Add Cost Savings to the Patron's Slip

A library can add a note to a patron checkout receipt that tells them how much they saved by using their library.

Editing a Notice

Go to the Staff Interface >Tools > Notices & Slips. Locate the ISSUESLIP or ISSUEQSLIP (or both). Although these receipts are generally printed with a receipt printer, you will want to edit the EMAIL portion of the notice, not the PRINT.

Example

<h3><<branches.branchname>></h3>
Checked out to <<borrowers.title>> <<borrowers.firstname>> <<borrowers.initials>> <<borrowers.surname>> <br />
(<<borrowers.cardnumber>>) <br />

<<today>><br />

<h4>Checked Out Today</h4>
<checkedout>
<p>
<<biblio.title>> <br />
Barcode: <<items.barcode>><br />
Date due: <<issues.date_due>><br />
</p>

</checkedout>

Then add this bit:

[% USE Price %]
[% totalValue = 0 %]

[% totalValue = 0 %]
[% FOREACH checkout IN checkouts %]
[% IF checkout.item.price == '' || checkout.item.price == '0.00' %]
[% FOREACH itemtype IN ItemTypes.Get() %]
[% IF checkout.item.itype == itemtype.itemtype %]
[% totalValue = totalValue + itemtype.defaultreplacecost %]
[% END %]
[% END %]
[% ELSE %]
[% totalValue = totalValue + checkout.item.price %]
[% END %]
[% END %]

<div>
By using the library today you have saved: <strong>$[% totalValue | $Price %]</strong>
</div>

Lifetime Savings Example

If you want to add the patron's lifetime savings, add this to the slip after the

</div>

[% FOREACH old_checkout IN borrower.old_checkouts %]
[% IF old_checkout.item.price == '' || old_checkout.item.price == '0.00' %]
[% FOREACH itemtype IN ItemTypes.Get() %]
[% IF old_checkout.item.itype == itemtype.itemtype %]
[% totalValue = totalValue + itemtype.defaultreplacecost %]
[% END %]
[% END %]
[% ELSE %]
[% totalValue = totalValue + old_checkout.item.price %]
[% END %]
[% END %]

<div>
By using the library your all time savings is: <strong>$[% totalValue | $Price%]</strong>
</div>

Replacement Price vs Purchase Price

This code uses the replacement price found in the item. If you prefer to use the purchase price, change the item.replacementprice to item.price.

This code will also defaults to itemtype.replacementprice when price is NULL or 0.00.

Example of Entire Issue Slip

Here is a link to a document that provides an entire issue slip code if you would prefer to just copy this and input it into Koha. This includes the lifetime savings at the bottom.
    • Related Articles

    • Notices in Koha

      Notices are a powerful way to communicate with patrons about their checked-out materials, holds, renewals, etc. Koha has many options for customizing the notices and customizing how they are delivered, both through settings configuration and through ...
    • Setting Up Patron Clubs in Koha

      In this Koha Tutorial we will show you the new feature in Koha for Patron Clubs. This features adds the ability to create clubs in which patrons can enroll. It is particularly useful for tracking summer reading programs, book clubs, etc. Permissions ...
    • Patron Point and Koha - Library Setup

      How does it work? Patron Point can send email, SMS, and/or phone messages. Similar to SIP users, an API patron/user allows third party integrations such as Patron Point to connect to Koha. The API patron will have permissions that allow it to ...
    • Koha Glossary of Terms

      Find the basics of Koha's vocabulary here This glossary is in alphabetical order. Use control+F to quickly search this page for specific terms. Authority Record: allows your library to control and search fields in your MARC records such as subject ...
    • Managing Patron Accounts

      Koha has many options and tools for managing patron accounts. Customize the Patron Registration Form Libraries can customize which patron fields display on the form, which fields are mandatory and which fields are collapsed within the patron detail ...