JBAS-2153 Lost precats are not refundable
authorBill Erickson <berickxx@gmail.com>
Wed, 28 Nov 2018 18:00:27 +0000 (13:00 -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 708e821..f03736f 100644 (file)
@@ -281,6 +281,9 @@ function handle_lost_payment_dialog(payment_blob) {
             if (!circ || !copy) return;
             if (circ.id() != xact[0]) return;
 
+            // precats are not refundable
+            if (Number(copy.call_number()) == -1) return;
+
             if (circ.stop_fines() == 'LOST' && // lost payment
                 !circ.checkin_time()        && // still checked out
                 NO_REFUND_CIRC_MODIFIERS.indexOf(''+copy.circ_modifier()) < 0) {