From 6cf8b2db887fe51b5bdf2a24e9da5d1364112909 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 2 Mar 2022 11:04:49 -0500 Subject: [PATCH] LP1904036 Improve billing failure reporting Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html | 4 ++++ Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html index 49ad0f9edc..ee175be0b2 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.html @@ -6,6 +6,10 @@ i18n-dialogBody dialogBody="Payments over 100,000 are denied by policy."> + + diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts index dd660bab57..d6181e7f72 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/bills.component.ts @@ -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; -- 2.11.0