LP#1708488 Checkout Print Template Balance Owed
authorKyle Huckins <khuckins@catalyte.io>
Fri, 27 Oct 2017 16:24:04 +0000 (16:24 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Nov 2017 16:22:49 +0000 (11:22 -0500)
Add Patron's money summary to Circulations in Checkout print template.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
Signed-off-by: Terra McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 327a05e..9c3c6b9 100644 (file)
@@ -7,6 +7,7 @@ Template for printing checkout receipts; fields available include:
   * title
   * copy_barcode
   * due_date
+  * patron_money.balance_owed - must be grabbed from a specific circulation, e.g. circulations[0].patron_money.balance_owed
 
 -->
 <div>
index d7af363..f7a7148 100644 (file)
@@ -469,7 +469,12 @@ function($scope , $q , egCore , ngToast) {
                 },
                 copy : seed_copy,
                 title : seed_record.title,
-                author : seed_record.author
+                author : seed_record.author,
+                patron_money : {
+                    balance_owed : "$5.00",
+                    total_owed : "$10.10",
+                    total_paid : "$5.10"
+                }
             },
         ],
 
index 4234f5c..e3ad2f7 100644 (file)
@@ -264,6 +264,7 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
             if (co.circ) {
                 print_data.circulations.push({
                     circ : egCore.idl.toHash(co.circ),
+                    patron_money : egCore.idl.toHash(co.evt[0].payload.patron_money),
                     copy : egCore.idl.toHash(co.acp),
                     call_number : egCore.idl.toHash(co.acn),
                     title : co.title,