LP1904036 Improve billing failure reporting
authorBill Erickson <berickxx@gmail.com>
Wed, 2 Mar 2022 16:04:49 +0000 (11:04 -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 49ad0f9..ee175be 100644 (file)
@@ -6,6 +6,10 @@
   i18n-dialogBody dialogBody="Payments over 100,000 are denied by policy.">
 </eg-alert-dialog>
 
+<eg-alert-dialog #errorDialog
+  i18n-dialogTitle dialogTitle="Error"
+</eg-alert-dialog>
+
 <eg-confirm-dialog #warnPayDialog
   i18n-dialogBody i18n-dialogTitle dialogTitle="Confirm Payment Amount"
   dialogBody="Are you sure you want to apply a payment of {{paymentAmount | currency}}?">
index dd660ba..d6181e7 100644 (file)
@@ -67,6 +67,7 @@ export class BillsComponent implements OnInit, AfterViewInit {
     @ViewChild('billGrid') private billGrid: GridComponent;
     @ViewChild('annotateDialog') private annotateDialog: PromptDialogComponent;
     @ViewChild('maxPayDialog') private maxPayDialog: AlertDialogComponent;
+    @ViewChild('errorDialog') private errorDialog: AlertDialogComponent;
     @ViewChild('warnPayDialog') private warnPayDialog: ConfirmDialogComponent;
     @ViewChild('voidBillsDialog') private voidBillsDialog: ConfirmDialogComponent;
     @ViewChild('refundDialog') private refundDialog: ConfirmDialogComponent;
@@ -628,6 +629,8 @@ export class BillsComponent implements OnInit, AfterViewInit {
             console.error(evt + '');
             console.error(evt);
             this.toast.danger(evt + '');
+            this.errorDialog.dialogBody = evt.toString();
+            this.errorDialog.open().toPromise();
             return true;
         }
         return false;