From: Bill Erickson Date: Wed, 28 Nov 2018 18:00:27 +0000 (-0500) Subject: JBAS-2153 Lost precats are not refundable X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=027afecb1f64d3145ef3e2df266842a2e4cc3d28;p=working%2FEvergreen.git JBAS-2153 Lost precats are not refundable Signed-off-by: Bill Erickson --- 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) {