LP1904036 Patron bills Full Details action
authorBill Erickson <berickxx@gmail.com>
Wed, 16 Feb 2022 14:02:08 +0000 (09:02 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:41 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html
Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts

index df0b41e..7e5a27b 100644 (file)
   <!-- ACTIONS FOR SELECTED -->
 
   <eg-grid-toolbar-action
+    i18n-label label="Full Details" (onClick)="showStatement($event[0])">
+  </eg-grid-toolbar-action>
+
+  <eg-grid-toolbar-action
     i18n-label label="Print Bills" (onClick)="printBills($event)">
   </eg-grid-toolbar-action>
 
index 6331551..b125285 100644 (file)
@@ -621,6 +621,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
     }
 
     showStatement(row: any) {
+        if (!row) { return; }
         this.router.navigate(['/staff/circ/patron',
             this.patronId, 'bills', row.id, 'statement']);
     }