JBAS-2101 Payments on checked-in lost are not refundable
authorBill Erickson <berickxx@gmail.com>
Thu, 15 Nov 2018 15:28:30 +0000 (10:28 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/xul/staff_client/server/patron/bill2.js

index 685868d..f2ca8e8 100644 (file)
@@ -276,7 +276,7 @@ function handle_lost_payment_dialog(payment_blob) {
             var circ = row_params.row.my.circ;
             if (!circ) return;
             if (circ.id() == xact[0]) {
-                if (circ.stop_fines() == 'LOST') {
+                if (circ.stop_fines() == 'LOST' && !circ.checkin_time()) {
                     lostpaid_xacts.push(xact[0]);
                 }
             }