[OPEN-ILS-DEV] Evergreen 3.0 Receipt templates

Terran McCanna tmccanna at georgialibraries.org
Fri Feb 9 17:51:20 EST 2018


I have an example of one that I posted here that might be helpful:

https://pines.georgialibraries.org/dokuwiki/doku.php?id=circ:workstations:receipts#subtotals

Terran McCanna
PINES Program Manager
Georgia Public Library Service
1800 Century Place, Suite 150
Atlanta, GA 30345
404-235-7138
tmccanna at georgialibraries.org

On Feb 9, 2018 3:03 PM, "Forrest, Stuart" <sforrest at bcgov.net> wrote:

> Hi
>
>
>
> This is my current attempt at the problem below, but does not give the
> calculation expected.
>
>
>
> <div>Welcome to {{current_location.name}}</div>
>
> <div>You have the following items checked out:</div>
>
> <hr/>
>
> <div ng-init="checkout.subtotal=123"}>
>
> <ol>
>
>                 <li ng-repeat="checkout in circulations">
>
>                                 <div>{{checkout.title}}</div>
>
>                                 <div>Barcode: {{checkout.copy.barcode}}
> </div>
>
>                                 <div>Due: {{checkout.circ.due_date |
> egDueDate:$root.egDateAndTimeFormat:checkout.circ.circ_lib:checkout.circ.
> duration}}</div>
>
>                                 <div>
>
>                                 Price: {{checkout.copy.price | currency}}
>
>                                 <div ng-init="checkout.subtotal=checkout.subtotal
> + 1">
>
>                 </li>
>
> </ol>
>
> <hr/>
>
> <div>{{current_location.shortname}} {{today | date:$root.
> egDateAndTimeFormat}}</div>
>
> <div>You were helped by {{staff.first_given_name}}</div>
>
> <BLOCKQUOTE>
>
>                 <div style="width:150px;height:70px;padding:10px;border:2px
> solid black;" align="center">
>
>                                 <font size="4">
>
>                                 <b>You saved: {{checkout.subtotal |
> currency}}<span sumout="sum1" fixed="2"></b> </span>
>
>                                 <br/> by using your
>
>                                 <br/> public library
>
>                 </div>
>
> </BLOCKQUOTE>
>
>
>
> ***************************************************
>
> Stuart Forrest PhD
>
> IT Analyst
>
> Beaufort County Library System
>
> 843 255 6450 <(843)%20255-6450>
>
> sforrest at bcgov.net
>
>
>
> www.beaufortcountylibrary.org
>
>
>
> For Leisure, For Learning, For Life
>
>
>
> *From:* Open-ils-dev [mailto:open-ils-dev-bounces@
> list.georgialibraries.org] *On Behalf Of *Forrest, Stuart
> *Sent:* Friday, February 09, 2018 2:07 PM
> *To:* Evergreen Development Discussion List (open-ils-dev at list.
> georgialibraries.org)
> *Subject:* [OPEN-ILS-DEV] Evergreen 3.0 Receipt templates
>
>
>
> This sender failed our fraud detection checks and may not
> be who they appear to be. Learn about spoofing
> <http://aka.ms/LearnAboutSpoofing>
>
> Feedback <http://aka.ms/SafetyTipsFeedback>
>
> Hi
>
>
>
> I really don’t know much about AngularJS but I am trying to convert the
> following 2.11 template to evergreen 3.0 especially the part that sums the
> prices of the itema and prints out the result at the end. Can anyone offer
> any advice please?
>
>
>
> Thanks
>
> Stuart
>
>
>
> **************************************************
>
> The following items have been examined:
>
> <hr/>
>
> <ol>
>
>                 <li>
>
>                                 %title%
>
>                                 <br/>Barcode: %barcode%
>
>                                 <br/>Due: <b>%due_date%</b>
>
>                                 <span style="display: none;"
> sum="sum1">%price%</span>
>
>                 </li>
>
> </ol>
>
> <hr />
>
> %SHORTNAME% %TODAY_TRIM%<br/>
>
> <BLOCKQUOTE>
>
>                 <div style="width:150px;height:70px;padding:10px;border:2px
> solid black;" align="center">
>
>                                 <font size="4">
>
>                                 <b>You saved: $<span sumout="sum1"
> fixed="2"></b> </span>
>
>                                 <br/> by using your
>
>                                 <br/> public library
>
>                 </div>
>
> </BLOCKQUOTE>
>
> ***************************************************
>
> Stuart Forrest PhD
>
> IT Analyst
>
> Beaufort County Library System
>
> 843 255 6450 <(843)%20255-6450>
>
> sforrest at bcgov.net
>
>
>
> www.beaufortcountylibrary.org
>
>
>
> For Leisure, For Learning, For Life
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libmail.georgialibraries.org/pipermail/open-ils-dev/attachments/20180209/fb224d74/attachment.html>


More information about the Open-ils-dev mailing list