LP#1747512 Non-cat checkout fix display/print
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Aug 2018 19:00:12 +0000 (15:00 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 10 Aug 2018 14:18:26 +0000 (10:18 -0400)
Fixes an issue which caused an exception to be thrown during non-cat
item checkout in the browser client, preventing the checkout from being
properly displayed in the checkout page, the Items Out list, and on the
receipt.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js

index 99b001c..cdb944c 100644 (file)
@@ -213,7 +213,9 @@ function($scope , $q , $routeParams , egCore , egUser , patronSvc ,
                     row_item[key] = val;
                 });
                
-                row_item['copy_barcode'] = row_item.acp.barcode();
+                if (row_item.acp) { // unset for non-cat items.
+                    row_item['copy_barcode'] = row_item.acp.barcode();
+                }
 
                 munge_checkout_resp(co_resp, row_item);
             },