Skip to content

Instantly share code, notes, and snippets.

@alynn26
Last active April 22, 2019 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alynn26/b7754186026a26873218dfe8371c4b37 to your computer and use it in GitHub Desktop.
Save alynn26/b7754186026a26873218dfe8371c4b37 to your computer and use it in GitHub Desktop.
Check out Receipt with Balanced owed, Saved Total, include statements. Also includes Patron barcode in barcode font at the bottom.
<div style="text-align:center;">
<img src="http://www.url.org/logo2bw.png" style="width:250px;" /></div>
<div style="text-align:center;"><b>{{INCLUDE.notice_text}}</b></div>
Welcome to {{current_location.name}}<br/>
You checked out the following items:<br/>
<hr/>
<ol>
<div ng-init="transactions.subtotal=0">
<li ng-repeat="checkout in circulations | orderBy:['circ.due_date','checkout.title']">
<div ng-init="transactions.subtotal=transactions.subtotal -- checkout.copy.price"><u> {{checkout.title}}</u><br/></div>
by: {{checkout.author}}<br/>
Barcode: {{checkout.copy.barcode}}<br/>
<b> Due: {{checkout.circ.due_date | egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.duration}}</b><br/>
</li>
</ol>
<hr/>
<div ng-if="patron.money_summary.balance_owed > 0" >Your account balance is:
{{patron.money_summary.balance_owed | currency}}
</div><br/>
<div style="border:3px dotted #000;text-align:center;padding: 10px;">You Saved: {{transactions.subtotal | currency}} by borrowing from the library!</div>
<hr/>
{{current_location.shortname}} {{today | date:$root.egDateAndTimeFormat}}<br/>
You were helped by {{staff.first_given_name}}<br/>
<br/>
<div style="text-align:center;">Please visit us at www.URL.org<br/>
or call us at {{includes.footer_text}}.<br/>
</div>
<b>{{includes.event_text}}</b></div>
<br/>
<div align="Center"; style= "font-family: 'CodabarMedium';">B{{patron.card.barcode}}D</div> <br/> .<br/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment