From 0c40f4ba56cdabc0679b6ba4b30202a9c9a1c89e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 5 Feb 2018 16:24:38 -0500 Subject: [PATCH] LP#1743262 CC external payment requires app. code 1. Indicate in the CC form that the approval_code field is required, styled consistently with the patron edit app. 2. Prevent the form dialog from closing via Submit when no approval code is set. 3. Handle payment failures better by preventing the post-API code from running (i.e. receipt printing) when the API fails. Signed-off-by: Bill Erickson --- .../staff/circ/patron/t_cc_payment_dialog.tt2 | 5 +-- Open-ILS/src/templates/staff/css/circ.css.tt2 | 3 +- .../web/js/ui/default/staff/circ/patron/bills.js | 36 ++++++++++++++++------ 3 files changed, 32 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_cc_payment_dialog.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_cc_payment_dialog.tt2 index 3a0ec6947a..e25bd86076 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_cc_payment_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_cc_payment_dialog.tt2 @@ -5,7 +5,7 @@ [% l('Credit Card Information') %] -