LP1904036 Update stats after checkout; quite warning
authorBill Erickson <berickxx@gmail.com>
Tue, 2 Mar 2021 23:01:41 +0000 (18:01 -0500)
committerBill Erickson <berickxx@gmail.com>
Mon, 5 Apr 2021 14:18:24 +0000 (10:18 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts

index 9a7abde..569b212 100644 (file)
@@ -210,6 +210,9 @@ export class CheckoutComponent implements OnInit, AfterViewInit {
 
         this.context.checkouts.unshift(entry);
         this.checkoutsGrid.reload();
+
+        // update summary data
+        this.context.refreshPatron();
     }
 
     noncatPrompt(): Observable<number> {
index 091190a..2a0b1e1 100644 (file)
@@ -199,7 +199,8 @@ export class HoldsGridComponent implements OnInit {
         this.cellTextGenerator = {
             title: row => row.title,
             cp_barcode: row => (row.cp_barcode == null) ? '' : row.cp_barcode,
-            patron_barcode: row => row.ucard_barcode
+            patron_barcode: row => row.ucard_barcode,
+            hold_status: row => row.hold_status // TODO labels
         };
     }