PINES Custom Offline Checkout and Renew Receipts
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 10 Dec 2018 20:36:05 +0000 (15:36 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 4 Jun 2019 21:33:17 +0000 (17:33 -0400)
- Correct due date to not show due time.
- Show 'Non-cataloged Item' text when there is no barcode.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2
Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2

index 7aeecaf..b8e38e8 100644 (file)
@@ -3,10 +3,12 @@
   <hr/>
   <ol>
     <li ng-repeat="checkout in transactions">
-      <div>Barcode: {{checkout.barcode}}<br/>
-         Due: {{checkout.due_date | date:"short"}}</div>
+      <div ng-if="checkout.barcode">Barcode: {{checkout.barcode}}<br/>
+         Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
+      <div ng-if="!checkout.barcode">Non-cataloged Item<br/>
+         Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
     </li>
   </ol>
   <hr/>
   <div>{{today | date:'short'}}</div>
-
+  <td ng-if="hold.sms_notify" valign="top">{{hold.sms_notify}}</td>
index a7134fb..ba87cc1 100644 (file)
@@ -4,10 +4,9 @@
   <ol>
     <li ng-repeat="checkout in transactions">
       <div>Barcode: {{checkout.barcode}}<br/>
-      Due: {{checkout.due_date | date:"short"}}</div>
+      Due: {{checkout.due_date | date:"M/d/yyyy"}}</div>
     </li>
   </ol>
   <hr/>
   <div>{{today | date:'short'}}</div>
 
-