LP#1806783 Offline: Non-cataloged item receipt printing
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 7 Mar 2019 17:55:46 +0000 (12:55 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 23 Oct 2019 13:39:49 +0000 (09:39 -0400)
When checkout out non-cataloged items in the offline interface,
the receipt will now print 'Non-cataloged item' and the number
of items rather than printing nothing.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2

index 292e7b4..dc2bd27 100644 (file)
@@ -7,6 +7,7 @@ Template for printing offline checkout receipts; fields available include:
   * barcode
   * patron_barcode
   * due_date
+  * noncat_count
 
 -->
 <div>
@@ -15,9 +16,9 @@ Template for printing offline checkout receipts; fields available include:
   <hr/>
   <ol>
     <li ng-repeat="checkout in transactions">
-      <div>[% l('Barcode: [_1] Due: [_2]', 
-        '{{checkout.barcode}}',
-        '{{checkout.due_date | date:"short"}}') %]</div>
+      <div ng-if="checkout.barcode">[% l('Barcode:') %] {{checkout.barcode}}</div>
+      <div ng-if="!checkout.barcode">[% l('Non-cataloged Item') %] ({{checkout.noncat_count}})</div>
+      <div>[% l('Due Date:') %] {{checkout.due_date | date:"short"}}</div>
     </li>
   </ol>
   <hr/>