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>
Tue, 2 Mar 2021 23:01:41 +0000 (18:01 -0500)
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.html
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 5ddaf04..a86b0ac 100644 (file)
           [hidden]="true"></eg-grid-column>
       <eg-grid-column i18n-label label="Potential Items" path='potentials' datatype="int">
       </eg-grid-column>
-      <eg-grid-column i18n-label label="Status" [cellTemplate]="statusTemplate">
+      <eg-grid-column i18n-label label="Status" name="hold_status" [cellTemplate]="statusTemplate">
       </eg-grid-column>
       <eg-grid-column i18n-label label="Queue Position"
           path='relative_queue_position' [hidden]="true" datatype="int"></eg-grid-column>
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
         };
     }