From 027afecb1f64d3145ef3e2df266842a2e4cc3d28 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 28 Nov 2018 13:00:27 -0500 Subject: [PATCH] JBAS-2153 Lost precats are not refundable Signed-off-by: Bill Erickson --- Open-ILS/xul/staff_client/server/patron/bill2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 708e821005..f03736f961 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -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) { -- 2.11.0